Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set noexec markers in the asm file directly #9

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ NODEPTARGETS=<version.h> <clean>

INSTALL = install

LDFLAGS += -Wl,-z,noexecstack -ldl
LDFLAGS += -ldl
CFLAGS ?= -O2 -g
CFLAGS += -Wall -fPIC
CPPFLAGS += -D__LIBHUGETLBFS__
Expand Down
4 changes: 4 additions & 0 deletions sys-aarch64elf.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ direct_syscall:
mov x6, x7
svc 0x0
ret

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
4 changes: 4 additions & 0 deletions sys-armelf_linux_eabi.S
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ direct_syscall:
swi 0x0
ldmfd sp!, {r4, r5, r6, r7}
bx lr

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
4 changes: 4 additions & 0 deletions sys-elf32ppclinux.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ direct_syscall:
mr 8,9
sc
blr

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
4 changes: 4 additions & 0 deletions sys-elf64_s390.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ direct_syscall:
lgr %r5,%r6
svc 0
br %r14

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
4 changes: 4 additions & 0 deletions sys-elf64ppc.S
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ direct_syscall:
mr 8,9
sc
blr

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
4 changes: 4 additions & 0 deletions sys-elf_i386.S
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ direct_syscall:
pop %edi
pop %ebp
ret

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
4 changes: 4 additions & 0 deletions sys-elf_s390.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ direct_syscall:
lr %r5,%r6
svc 0
br %r14

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
4 changes: 4 additions & 0 deletions sys-elf_x86_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ direct_syscall:
mov 0x8(%rsp),%r9
syscall
retq

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif