From: Timothy Gu Date: Tue, 26 May 2015 17:12:42 +0000 (+0200) Subject: x86inc: Prevent warnings when using `struc` and `endstruc` X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d14e38c059c9a2aecc82477b99d56ef74eb731ec;p=libx264 x86inc: Prevent warnings when using `struc` and `endstruc` struc and endstruc attempts to revert to the previous section state set by the SECTION macro. Use the primitive [SECTION] directive instead of the SECTION macro for the .note.GNU-stack section to prevent it from being emitted again during endstruc. --- diff --git a/common/x86/x86inc.asm b/common/x86/x86inc.asm index 7329bfe5..9c5193d4 100644 --- a/common/x86/x86inc.asm +++ b/common/x86/x86inc.asm @@ -715,7 +715,7 @@ BRANCH_INSTR jz, je, jnz, jne, jl, jle, jnl, jnle, jg, jge, jng, jnge, ja, jae, ; 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 + [SECTION .note.GNU-stack noalloc noexec nowrite progbits] %endif ; cpuflags