[asm] * Set a good default GNU-stack note. Need to properly support the nx bits (security concerns)

See http://www.gentoo.org/proj/en/hardened/gnu-stack.xml for details.


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3396 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut 2010-07-05 15:56:38 +00:00
parent f8163336b7
commit 6e30a41931
4 changed files with 14 additions and 0 deletions

View File

@ -491,3 +491,7 @@ $memcpy_final:
pop edi
ret 4
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -73,3 +73,6 @@ so_exit:
mov ebp, [eax+20]
ret
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -46,3 +46,6 @@ SuperVUEndProgram:
call SuperVUCleanupProgram
jmp [s_callstack] // so returns correctly
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif

View File

@ -630,3 +630,7 @@ SwizzleBlock4u_sse2_1:
ret 4
#endif
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif