linux: address executable stack warnings

Mark assembly files as not requiring executable stacks.

This still leaves linux32_vdso.so without a .note.GNU-stack section in
the gcc build for now.

Reviewed by:	imp, kib
Differential Revision:	https://reviews.freebsd.org/D56894
This commit is contained in:
Ryan Libby
2026-05-10 22:39:27 -07:00
parent 70ef02b5d3
commit bac7bd5038
8 changed files with 16 additions and 0 deletions
+2
View File
@@ -85,3 +85,5 @@ END(linux_rt_sigcode)
.balign 4
.previous
#endif
.section .note.GNU-stack,"",%progbits
+2
View File
@@ -227,3 +227,5 @@ ENTRY(futex_xorl_smap)
movq %rax,PCB_ONFAULT(%r8)
ret
END(futex_xorl_smap)
.section .note.GNU-stack,"",%progbits
+2
View File
@@ -128,3 +128,5 @@ END(__kernel_vsyscall)
.balign 4
.previous
#endif
.section .note.GNU-stack,"",%progbits
+2
View File
@@ -227,3 +227,5 @@ ENTRY(futex_xorl_smap)
movq %rax,PCB_ONFAULT(%r8)
ret
END(futex_xorl_smap)
.section .note.GNU-stack,"",%progbits
+2
View File
@@ -51,3 +51,5 @@ __user_rt_sigreturn:
mov x8, #LINUX_SYS_linux_rt_sigreturn
svc #0
EEND(__kernel_rt_sigreturn)
.section .note.GNU-stack,"",%progbits
+2
View File
@@ -176,3 +176,5 @@ ENTRY(futex_xorl)
END(futex_xorl)
GNU_PROPERTY_AARCH64_FEATURE_1_NOTE(GNU_PROPERTY_AARCH64_FEATURE_1_VAL)
.section .note.GNU-stack,"",%progbits
+2
View File
@@ -37,3 +37,5 @@ _binary_linux_vdso_so_o_end:
#include <machine/asm.h>
GNU_PROPERTY_AARCH64_FEATURE_1_NOTE(GNU_PROPERTY_AARCH64_FEATURE_1_VAL)
#endif
.section .note.GNU-stack,"",%progbits
+2
View File
@@ -122,3 +122,5 @@ END(__kernel_vsyscall)
.balign 4
.previous
#endif
.section .note.GNU-stack,"",%progbits