From 3723deea1601ba0dbda44ce09f77d6e1019226ac Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 1 Mar 2006 22:12:22 +0000 Subject: [PATCH] * 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 --- common/i386/i386inc.asm | 7 +++++++ 1 file changed, 7 insertions(+) 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 + -- 2.47.3