]> git.sesse.net Git - x264/commitdiff
x86inc: Prevent warnings when using `struc` and `endstruc`
authorTimothy Gu <timothygu99@gmail.com>
Tue, 26 May 2015 17:12:42 +0000 (19:12 +0200)
committerHenrik Gramner <henrik@gramner.com>
Sat, 25 Jul 2015 20:52:54 +0000 (22:52 +0200)
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.

common/x86/x86inc.asm

index 7329bfe5a519952266e8a0ebf053bf2072e5def0..9c5193d44bbb45c988e161d918341f169dbf3581 100644 (file)
@@ -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