From: Loren Merritt Date: Tue, 11 Apr 2006 02:41:43 +0000 (+0000) Subject: yasm noexec stack X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=ae82d2423aa1d54eb367ca292262bc6bd3dec134;p=x264.git yasm noexec stack git-svn-id: svn://svn.videolan.org/x264/trunk@493 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/common/amd64/amd64inc.asm b/common/amd64/amd64inc.asm index 4b422eac..44422789 100644 --- a/common/amd64/amd64inc.asm +++ b/common/amd64/amd64inc.asm @@ -274,3 +274,9 @@ SECTION .text %assign FENC_STRIDE 16 %assign FDEC_STRIDE 32 + +; This is needed for ELF, otherwise the GNU linker assumes the stack is +; executable by default. +%ifidn __YASM_OBJFMT__,elf +section ".note.GNU-stack" noalloc noexec nowrite progbits +%endif