Skip to content

Commit

Permalink
Fix macOS compile: add __ELF__ check for .note.GNU-stack (Snaipe#28)
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Dittmann <[email protected]>
  • Loading branch information
PhDittmann authored Nov 3, 2023
1 parent 6b08fa3 commit 8d17528
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/asm/trampoline-aarch64.S
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,6 @@ ret_ctx:
MANGLE(mmk_trampoline_end):
nop

#ifdef __ELF__
.section .note.GNU-stack, "", @progbits
#endif
2 changes: 2 additions & 0 deletions src/asm/trampoline-x86_64-systemv.S
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,6 @@ ret_ctx: // Return context
MANGLE(mmk_trampoline_end):
nop

#ifdef __ELF__
.section .note.GNU-stack, "", @progbits
#endif

0 comments on commit 8d17528

Please sign in to comment.