]> git.videolan.org Git - x264.git/commitdiff
* common/i386/i386inc.asm: tell the ELF linker about our stack properties
authorSam Hocevar <sam@videolan.org>
Wed, 1 Mar 2006 22:12:22 +0000 (22:12 +0000)
committerSam Hocevar <sam@videolan.org>
Wed, 1 Mar 2006 22:12:22 +0000 (22:12 +0000)
    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

common/i386/i386inc.asm

index e52fbcfe0e2fceea59644354aad59e061216648a..e4035cbfaac0c8710118dac4013681d1480cee2b 100644 (file)
@@ -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
+