From: Sam Hocevar Date: Wed, 1 Mar 2006 22:12:22 +0000 (+0000) Subject: * common/i386/i386inc.asm: tell the ELF linker about our stack properties X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=3723deea1601ba0dbda44ce09f77d6e1019226ac;p=x264.git * common/i386/i386inc.asm: tell the ELF linker about our stack properties so that it does not assume the stack has to be executable. git-svn-id: svn://svn.videolan.org/x264/trunk@447 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/common/i386/i386inc.asm b/common/i386/i386inc.asm index e52fbcfe..e4035cbf 100644 --- a/common/i386/i386inc.asm +++ b/common/i386/i386inc.asm @@ -111,3 +111,10 @@ BITS 32 %endif %assign FDEC_STRIDE 32 + +; This is needed for ELF, otherwise the GNU linker assumes the stack is +; executable by default. +%ifidn __OUTPUT_FORMAT__,elf +SECTION .note.GNU-stack noalloc noexec nowrite progbits +%endif +