aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-05-06 20:30:06 +0100
committerNick Clifton <nickc@redhat.com>2022-05-06 20:30:06 +0100
commitd11c7afad34bd2ff8cc5e0a38c32d3ec82a2664f (patch)
tree0c38147367c01857db225dbc1d16a6260afe11bd /ld/testsuite
parentfed1c982dec3baba167b3fd4df3538f09fa3d339 (diff)
downloadgdb-d11c7afad34bd2ff8cc5e0a38c32d3ec82a2664f.zip
gdb-d11c7afad34bd2ff8cc5e0a38c32d3ec82a2664f.tar.gz
gdb-d11c7afad34bd2ff8cc5e0a38c32d3ec82a2664f.tar.bz2
Fix new linker testsuite failures due to rwx segment test problems
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-elf/elf.exp3
-rw-r--r--ld/testsuite/ld-elf/nobits-1.s2
-rw-r--r--ld/testsuite/ld-elf/size-2.s2
3 files changed, 6 insertions, 1 deletions
diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp
index 1b30011..6d51d12 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 8fb1365..fe81f62 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 310efde..5826b5c 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