https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105472
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by H.J. Lu <h...@gcc.gnu.org>: https://gcc.gnu.org/g:ab8a8d053734d6abc6ee9c5bfb772ff95ba74fc9 commit r12-8363-gab8a8d053734d6abc6ee9c5bfb772ff95ba74fc9 Author: H.J. Lu <hjl.to...@gmail.com> Date: Fri May 6 10:55:53 2022 -0700 x86: Add .note.GNU-stack section only for Linux Add .note.GNU-stack section only for Linux since it may not be supported on non-Linux OSes. __ELF__ isn't checked since these tests can only run on Linux/x86 ELF systems. PR target/105472 * gcc.target/i386/iamcu/asm-support.S: Add .note.GNU-stack section only for Linux. * 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. (cherry picked from commit 71eae0fd3dd7a5f30067ea26a06a8774355fd5cc)