mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
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:
parent
2278f5e494
commit
881add2c51
17 changed files with 60 additions and 0 deletions
|
@ -392,3 +392,7 @@ Lerror:
|
|||
#endif
|
||||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -178,3 +178,7 @@ LLRowLoop:
|
|||
|
||||
ret
|
||||
#endif /* USE_INTEL_ASM */
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -1046,3 +1046,7 @@ LFDone:
|
|||
ret
|
||||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -485,3 +485,7 @@ LPop1AndDone:
|
|||
jmp LDone
|
||||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -1753,3 +1753,6 @@ LNextTri:
|
|||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -98,3 +98,6 @@ Llp:
|
|||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -909,3 +909,7 @@ LNextSpan:
|
|||
ret
|
||||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -793,3 +793,7 @@ LPatchLoop8:
|
|||
ret
|
||||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -322,3 +322,6 @@ C(R_Alias_clip_left):
|
|||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -246,3 +246,6 @@ Lsavelight:
|
|||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -847,3 +847,6 @@ LClampP3:
|
|||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -759,3 +759,6 @@ C(R_SurfacePatch):
|
|||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -87,3 +87,6 @@ C(R_InitVars):
|
|||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
@ -110,3 +110,7 @@ C(TransformVector):
|
|||
ret
|
||||
|
||||
#endif // USE_INTEL_ASM
|
||||
|
||||
#if defined(__linux__) && defined(__ELF__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue