Add GNU-stack notes to assembly files

Prevents GCC from assuming an executable stack is needed.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens 2021-06-13 10:12:03 -04:00
parent 2278f5e494
commit 881add2c51
No known key found for this signature in database
GPG key ID: B24406B0B0AC4334
17 changed files with 60 additions and 0 deletions

View file

@ -392,3 +392,7 @@ Lerror:
#endif
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -85,3 +85,7 @@ F_BEGIN(Sys_MaskFPUExceptions)
ret
F_END(Sys_MaskFPUExceptions)
#endif /* USE_INTEL_ASM */
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -178,3 +178,7 @@ LLRowLoop:
ret
#endif /* USE_INTEL_ASM */
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -1046,3 +1046,7 @@ LFDone:
ret
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -485,3 +485,7 @@ LPop1AndDone:
jmp LDone
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -1753,3 +1753,6 @@ LNextTri:
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -98,3 +98,6 @@ Llp:
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -909,3 +909,7 @@ LNextSpan:
ret
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -203,3 +203,6 @@ C(spr8entryvec_table): .long 0, C(Spr8Entry2_8), C(Spr8Entry3_8), C(Spr8Entry4_8
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -153,3 +153,7 @@ F_BEGIN(R_SetFPCW)
ret
F_END(R_SetFPCW)
#endif /* USE_INTEL_ASM */
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -793,3 +793,7 @@ LPatchLoop8:
ret
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -322,3 +322,6 @@ C(R_Alias_clip_left):
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -246,3 +246,6 @@ Lsavelight:
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -847,3 +847,6 @@ LClampP3:
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -759,3 +759,6 @@ C(R_SurfacePatch):
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -87,3 +87,6 @@ C(R_InitVars):
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View file

@ -110,3 +110,7 @@ C(TransformVector):
ret
#endif // USE_INTEL_ASM
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif