Skip to content

Commit

Permalink
Merge pull request #247 from SoapGentoo/fix-x32
Browse files Browse the repository at this point in the history
Fix x32 build on x86-64
  • Loading branch information
olk authored Jan 23, 2024
2 parents 0bf820b + 922e033 commit 0867936
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 0867936

Please sign in to comment.