From: Nick Clifton Date: Fri, 6 May 2022 19:30:06 +0000 (+0100) Subject: Fix new linker testsuite failures due to rwx segment test problems X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d11c7afad34bd2ff8cc5e0a38c32d3ec82a2664f;p=binutils-gdb.git Fix new linker testsuite failures due to rwx segment test problems --- diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 1b300117ad1..6d51d12a655 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -182,6 +182,7 @@ if { [check_gc_sections_available] && ![istarget "v850-*-*"] } { proc target_defaults_to_execstack {} { if { [istarget "aarch64*-*-*"] + || [istarget "arm-*-*"] || [istarget "*-*-nacl"] || [istarget "arc*-*-*"] || [istarget "ia64*-*-*"] @@ -274,7 +275,7 @@ if { [istarget *-*-*linux*] {size-2.s} \ {{ld rwx-segments-2.l}} \ "rwx-segments-2.exe"] \ - [list "Ensure that the warning can be suppressed" \ + [list "Ensure that the RWX warning can be suppressed" \ "-e 0 -Tnobits-1.t --no-warn-rwx-segments" \ "" \ "" \ diff --git a/ld/testsuite/ld-elf/nobits-1.s b/ld/testsuite/ld-elf/nobits-1.s index 8fb1365c710..fe81f62d3d3 100644 --- a/ld/testsuite/ld-elf/nobits-1.s +++ b/ld/testsuite/ld-elf/nobits-1.s @@ -4,3 +4,5 @@ _entry: .byte 0 .section .bar,"ax",%nobits .byte 0 + + .section .note.GNU-stack,"",%progbits diff --git a/ld/testsuite/ld-elf/size-2.s b/ld/testsuite/ld-elf/size-2.s index 310efde2b26..5826b5cdef1 100644 --- a/ld/testsuite/ld-elf/size-2.s +++ b/ld/testsuite/ld-elf/size-2.s @@ -7,3 +7,5 @@ .section .tbss .long 0,0,0,0,0,0,0,0,0,0,0,0 + + .section .note.GNU-stack,"",%progbits