diff options
author | Nick Clifton <nickc@redhat.com> | 2022-05-06 20:30:06 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-05-06 20:30:06 +0100 |
commit | d11c7afad34bd2ff8cc5e0a38c32d3ec82a2664f (patch) | |
tree | 0c38147367c01857db225dbc1d16a6260afe11bd /ld/testsuite | |
parent | fed1c982dec3baba167b3fd4df3538f09fa3d339 (diff) | |
download | gdb-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.exp | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/nobits-1.s | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/size-2.s | 2 |
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 |