]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Add missing .note.GNU-stack to assembly source
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Apr 2022 17:26:24 +0000 (10:26 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 2 May 2022 18:38:23 +0000 (11:38 -0700)
commit7e1f30d7edd433ca0fc28ae9ac1ce9b522790baf
tree7ab46a853b819a64cd17f5917e206ee7c5e4dc15
parent198bd0d599e0a91df1cfa6ab37545d05dff48e97
x86: Add missing .note.GNU-stack to assembly source

Add .note.GNU-stack assembly source to avoid linker warning:

ld: warning: /tmp/ccPZSZ7Z.o: missing .note.GNU-stack section implies executable stack
ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
FAIL: gcc.target/i386/iamcu/test_3_element_struct_and_unions.c compilation,  -O0

PR testsuite/105433
* gcc.target/i386/iamcu/asm-support.S: Add .note.GNU-stack.
* gcc.target/x86_64/abi/asm-support.S: Likewise.
* gcc.target/x86_64/abi/avx/asm-support.S: Likewise.
* gcc.target/x86_64/abi/avx512f/asm-support.S: Likewise.
* gcc.target/x86_64/abi/avx512fp16/asm-support.S: Likewise.
* gcc.target/x86_64/abi/avx512fp16/m256h/asm-support.S: Likewise.
* gcc.target/x86_64/abi/avx512fp16/m512h/asm-support.S: Likewise.
* gcc.target/x86_64/abi/ms-sysv/do-test.S: Likewise.
gcc/testsuite/gcc.target/i386/iamcu/asm-support.S
gcc/testsuite/gcc.target/x86_64/abi/asm-support.S
gcc/testsuite/gcc.target/x86_64/abi/avx/asm-support.S
gcc/testsuite/gcc.target/x86_64/abi/avx512f/asm-support.S
gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/asm-support.S
gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/m256h/asm-support.S
gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/m512h/asm-support.S
gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/do-test.S