mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-09-06 09:51:27 +00:00
Avoid executable stack by marking that it's not required. (#4418)
Also refer to: https://github.com/fluent/fluent-bit/issues/10513 Signed-off-by: Jaco Kroon <jaco@uls.co.za>
This commit is contained in:
parent
378320b886
commit
272a41dc80
3
core/iwasm/common/arch/fneh.txt
Normal file
3
core/iwasm/common/arch/fneh.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
|
@ -79,3 +79,6 @@ return:
|
||||||
add sp, sp, #0x30 /* restore sp */
|
add sp, sp, #0x30 /* restore sp */
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
|
@ -77,3 +77,6 @@ return:
|
||||||
add sp, sp, #0x30 /* restore sp */
|
add sp, sp, #0x30 /* restore sp */
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
|
@ -67,3 +67,6 @@ call_func:
|
||||||
j_s [blink] /* ret */
|
j_s [blink] /* ret */
|
||||||
nop_s
|
nop_s
|
||||||
|
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
|
@ -73,3 +73,6 @@ return:
|
||||||
add sp, sp, #4
|
add sp, sp, #4
|
||||||
ldmfd sp!, {r4, r5, r6, r7, lr}
|
ldmfd sp!, {r4, r5, r6, r7, lr}
|
||||||
bx lr
|
bx lr
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
|
@ -84,3 +84,6 @@ return:
|
||||||
ldmfd sp!, {r4, r5, r6, r7, lr}
|
ldmfd sp!, {r4, r5, r6, r7, lr}
|
||||||
bx lr
|
bx lr
|
||||||
|
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
|
@ -62,3 +62,6 @@ push_args_end:
|
||||||
leave
|
leave
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
|
@ -62,3 +62,6 @@ push_args_end:
|
||||||
leave
|
leave
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
|
@ -35,3 +35,6 @@ skip_push_args:
|
||||||
leave
|
leave
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
|
@ -72,3 +72,6 @@ done:
|
||||||
|
|
||||||
j $31
|
j $31
|
||||||
.end invokeNative
|
.end invokeNative
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
|
@ -15,4 +15,4 @@
|
||||||
#else
|
#else
|
||||||
#include "invokeNative_em64_simd.s"
|
#include "invokeNative_em64_simd.s"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -89,3 +89,6 @@ return:
|
||||||
pop {r4, r5, r6, r7}
|
pop {r4, r5, r6, r7}
|
||||||
mov lr, r3
|
mov lr, r3
|
||||||
bx lr
|
bx lr
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
|
@ -98,3 +98,6 @@ return:
|
||||||
mov lr, r3
|
mov lr, r3
|
||||||
bx lr
|
bx lr
|
||||||
|
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
|
@ -72,3 +72,6 @@ call_func:
|
||||||
|
|
||||||
return:
|
return:
|
||||||
retw.n
|
retw.n
|
||||||
|
#if defined(__linux__) && defined(__ELF__)
|
||||||
|
.section .note.GNU-stack,"",%progbits
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user