Skip to content

Commit

Permalink
Fix x32 build on x86-64
Browse files Browse the repository at this point in the history
  • Loading branch information
SoapGentoo committed Jan 23, 2024
1 parent 0bf820b commit 922e033
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/asm/jump_i386_sysv_elf_gas.S
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
* *
****************************************************************************************/

#ifdef __x86_64__
#include "jump_x86_64_sysv_elf_gas.S"
#else

.file "jump_i386_sysv_elf_gas.S"
.text
.globl jump_fcontext
Expand Down Expand Up @@ -91,3 +95,5 @@ jump_fcontext:

/* Mark that we don't need executable stack. */
.section .note.GNU-stack,"",%progbits

#endif
6 changes: 6 additions & 0 deletions src/asm/make_i386_sysv_elf_gas.S
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
* *
****************************************************************************************/

#ifdef __x86_64__
#include "make_x86_64_sysv_elf_gas.S"
#else

.file "make_i386_sysv_elf_gas.S"
.text
.globl make_fcontext
Expand Down Expand Up @@ -111,3 +115,5 @@ finish:

/* Mark that we don't need executable stack. */
.section .note.GNU-stack,"",%progbits

#endif

0 comments on commit 922e033

Please sign in to comment.