Skip to content

Avoid executable stack by marking that it's not required. #4418

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_aarch64.s
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,6 @@ return:
add sp, sp, #0x30 /* restore sp */
ret

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_aarch64_simd.s
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,6 @@ return:
add sp, sp, #0x30 /* restore sp */
ret

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_arc.s
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ call_func:
j_s [blink] /* ret */
nop_s

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_arm.s
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ return:
add sp, sp, #4
ldmfd sp!, {r4, r5, r6, r7, lr}
bx lr
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_arm_vfp.s
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,6 @@ return:
ldmfd sp!, {r4, r5, r6, r7, lr}
bx lr

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_em64.s
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ push_args_end:
leave
ret

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_em64_simd.s
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ push_args_end:
leave
ret

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_ia32.s
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ skip_push_args:
leave
ret

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_mingw_x64.s
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ cycle_end:
call *%r10
leave
ret
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_mingw_x64_simd.s
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ cycle_end:
call *%r10
leave
ret
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_mips.s
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,6 @@ done:

j $31
.end invokeNative
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
4 changes: 3 additions & 1 deletion core/iwasm/common/arch/invokeNative_osx_universal.s
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
#else
#include "invokeNative_em64_simd.s"
#endif
#endif
#endif#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_thumb.s
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,6 @@ return:
pop {r4, r5, r6, r7}
mov lr, r3
bx lr
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_thumb_vfp.s
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,6 @@ return:
mov lr, r3
bx lr

#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
3 changes: 3 additions & 0 deletions core/iwasm/common/arch/invokeNative_xtensa.s
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,6 @@ call_func:

return:
retw.n
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
Loading