[x265] [PATCH 14 of 20] x86inc: Prevent warnings when using `struc` and `endstruc`

vignesh at multicorewareinc.com vignesh at multicorewareinc.com
Mon Jun 12 07:37:56 CEST 2017


# HG changeset patch
# User Vignesh Vijayakumar
# Date 1496749446 -19800
#      Tue Jun 06 17:14:06 2017 +0530
# Node ID 56c0d472d5b64500fce96fc4c41c5b234479009a
# Parent  a0def8e28feb8ffe47af2a943e2b539cf0e79173
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 -r a0def8e28feb -r 56c0d472d5b6 source/common/x86/x86inc.asm
--- a/source/common/x86/x86inc.asm	Tue Jun 06 17:11:48 2017 +0530
+++ b/source/common/x86/x86inc.asm	Tue Jun 06 17:14:06 2017 +0530
@@ -721,7 +721,7 @@
 ; 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


More information about the x265-devel mailing list