aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
Diffstat (limited to 'ld')
-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