]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix new linker testsuite failures due to rwx segment test problems
authorNick Clifton <nickc@redhat.com>
Fri, 6 May 2022 19:30:06 +0000 (20:30 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 6 May 2022 19:30:06 +0000 (20:30 +0100)
ld/testsuite/ld-elf/elf.exp
ld/testsuite/ld-elf/nobits-1.s
ld/testsuite/ld-elf/size-2.s

index 1b300117ad12342921d29f5247d6abb6c3df6509..6d51d12a655b9ba2451280ff36b12abc42b014ce 100644 (file)
@@ -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" \
            "" \
            "" \
index 8fb1365c7100cebc582bd846179709e92ee9a65b..fe81f62d3d32f9b063e4687f2914b71595b17fa3 100644 (file)
@@ -4,3 +4,5 @@ _entry:
        .byte 0
        .section .bar,"ax",%nobits
        .byte 0
+
+       .section        .note.GNU-stack,"",%progbits
index 310efde2b26aa5c796579fa28e6697717fbad53a..5826b5cdef1520f5cb83f0089137a373b98d47a2 100644 (file)
@@ -7,3 +7,5 @@
 
        .section .tbss
        .long 0,0,0,0,0,0,0,0,0,0,0,0
+
+       .section        .note.GNU-stack,"",%progbits