From ae82d2423aa1d54eb367ca292262bc6bd3dec134 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Tue, 11 Apr 2006 02:41:43 +0000 Subject: [PATCH] yasm noexec stack git-svn-id: svn://svn.videolan.org/x264/trunk@493 df754926-b1dd-0310-bc7b-ec298dee348c --- common/amd64/amd64inc.asm | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.40.0