diff options
Diffstat (limited to 'ld/testsuite')
69 files changed, 89 insertions, 89 deletions
diff --git a/ld/testsuite/ld-elf/commonpage2.d b/ld/testsuite/ld-elf/commonpage2.d index e4d582b..ae58515 100644 --- a/ld/testsuite/ld-elf/commonpage2.d +++ b/ld/testsuite/ld-elf/commonpage2.d @@ -1,6 +1,6 @@ #source: maxpage1.s #as: --32 -#ld: -z max-page-size=0x200000 -z common-page-size=0x100000 -T maxpage4.t +#ld: -z max-page-size=0x200000 -z common-page-size=0x100000 -T maxpage4.t --no-warn-rwx-segments #readelf: -l --wide #target: x86_64-*-linux* diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 9e2c77d..545d59f 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -217,7 +217,7 @@ if { [istarget *-*-*linux*] || [istarget *-*-gnu*] } { run_ld_link_tests [list \ [list "stack exec" \ - "-z execstack" \ + "-z execstack --no-error-execstack" \ "" \ "" \ {stack.s} \ @@ -264,14 +264,14 @@ if { [istarget *-*-*linux*] # of the first test by forcing the flags. run_ld_link_tests [list \ [list "PR ld/29072 (warn about an executable .note.GNU-stack)" \ - "-e 0 --warn-execstack --warn-rwx-segments" \ + "-e 0 --warn-execstack --warn-rwx-segments --no-error-rwx-segments --no-error-execstack" \ "" \ "" \ {pr29072-a.s} \ {{ld pr29072.a.warn}} \ "pr29072-a.exe"] \ [list "PR 29072 (warn about -z execstack)" \ - "-z execstack --warn-execstack" \ + "-z execstack --warn-execstack --no-error-execstack" \ "" \ "" \ {stack.s} \ @@ -285,14 +285,14 @@ if { [istarget *-*-*linux*] {} \ "pr29072-d.exe"] \ [list "Ensure that a warning issued when creating a segment with RWX permissions" \ - "-e 0 -Tnobits-1.t --warn-rwx-segments" \ + "-e 0 -Tnobits-1.t --warn-rwx-segments --no-error-rwx-segments" \ "" \ "" \ {nobits-1.s} \ {{ld rwx-segments-1.l}} \ "rwx-segments-1.exe"] \ [list "Ensure that a warning issued when creating a TLS segment with execute permission" \ - "-e 0 -T rwx-segments-2.t --warn-rwx-segments" \ + "-e 0 -T rwx-segments-2.t --warn-rwx-segments --no-error-rwx-segments" \ "" \ "" \ {size-2.s} \ @@ -312,7 +312,7 @@ if { [istarget *-*-*linux*] if { [target_defaults_to_execstack] } { run_ld_link_tests [list \ [list "PR ld/29072 (warn about absent .note.GNU-stack)" \ - "-e 0 -z stack-size=0x123400 --warn-execstack" \ + "-e 0 -z stack-size=0x123400 --warn-execstack --no-error-execstack" \ "" \ "" \ {pr29072-b.s} \ @@ -322,7 +322,7 @@ if { [istarget *-*-*linux*] } else { run_ld_link_tests [list \ [list "PR ld/29072 (ignore absent .note.GNU-stack)" \ - "-e 0 -z stack-size=0x123400" \ + "-e 0 -z stack-size=0x123400 --no-error-execstack" \ "" \ "" \ {pr29072-b.s} \ diff --git a/ld/testsuite/ld-elf/header.d b/ld/testsuite/ld-elf/header.d index 67f0c98..ade4f3a 100644 --- a/ld/testsuite/ld-elf/header.d +++ b/ld/testsuite/ld-elf/header.d @@ -1,5 +1,5 @@ # target: *-*-linux* *-*-gnu* *-*-vxworks arm*-*-uclinuxfdpiceabi -# ld: -T header.t -z max-page-size=0x100 -z common-page-size=0x100 +# ld: -T header.t -z max-page-size=0x100 -z common-page-size=0x100 --no-warn-rwx-segments # objdump: -hpw #... diff --git a/ld/testsuite/ld-elf/loadaddr1.d b/ld/testsuite/ld-elf/loadaddr1.d index 814afc1..1418313 100644 --- a/ld/testsuite/ld-elf/loadaddr1.d +++ b/ld/testsuite/ld-elf/loadaddr1.d @@ -1,5 +1,5 @@ #source: loadaddr.s -#ld: -T loadaddr1.t -T loadaddr.t -z max-page-size=0x200000 -z noseparate-code +#ld: -T loadaddr1.t -T loadaddr.t -z max-page-size=0x200000 -z noseparate-code --no-warn-rwx-segments #readelf: -l --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi #xfail: h8300-*-* rx-*-linux* diff --git a/ld/testsuite/ld-elf/loadaddr2.d b/ld/testsuite/ld-elf/loadaddr2.d index 64843c2..357bbe5 100644 --- a/ld/testsuite/ld-elf/loadaddr2.d +++ b/ld/testsuite/ld-elf/loadaddr2.d @@ -1,5 +1,5 @@ #source: loadaddr.s -#ld: -T loadaddr2.t -T loadaddr.t -z max-page-size=0x200000 -z noseparate-code +#ld: -T loadaddr2.t -T loadaddr.t -z max-page-size=0x200000 -z noseparate-code --no-warn-rwx-segments #readelf: -l --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi #xfail: h8300-*-* rx-*-linux* diff --git a/ld/testsuite/ld-elf/maxpage4.d b/ld/testsuite/ld-elf/maxpage4.d index a08e856..f07c35f 100644 --- a/ld/testsuite/ld-elf/maxpage4.d +++ b/ld/testsuite/ld-elf/maxpage4.d @@ -1,6 +1,6 @@ #source: maxpage1.s #as: --32 -#ld: -z max-page-size=0x200000 -T maxpage4.t +#ld: -z max-page-size=0x200000 -T maxpage4.t --no-warn-rwx-segments #readelf: -l --wide #target: x86_64-*-linux* i?86-*-linux-gnu i?86-*-gnu* diff --git a/ld/testsuite/ld-elf/nobits-1.d b/ld/testsuite/ld-elf/nobits-1.d index 9b90b6f..b869475 100644 --- a/ld/testsuite/ld-elf/nobits-1.d +++ b/ld/testsuite/ld-elf/nobits-1.d @@ -1,4 +1,4 @@ -#ld: -Tnobits-1.t +#ld: -Tnobits-1.t --no-warn-rwx-segments #readelf: -l --wide #... diff --git a/ld/testsuite/ld-elf/note-1.d b/ld/testsuite/ld-elf/note-1.d index a5fc40f..ddf3606 100644 --- a/ld/testsuite/ld-elf/note-1.d +++ b/ld/testsuite/ld-elf/note-1.d @@ -1,4 +1,4 @@ -#ld: -Tnote-1.t +#ld: -Tnote-1.t --no-warn-rwx-segments #readelf: -l --wide #... diff --git a/ld/testsuite/ld-elf/orphan-10.d b/ld/testsuite/ld-elf/orphan-10.d index 8ad71c8..330a471 100644 --- a/ld/testsuite/ld-elf/orphan-10.d +++ b/ld/testsuite/ld-elf/orphan-10.d @@ -1,5 +1,5 @@ #source: orphan-10.s -#ld: -N -T orphan-9.ld +#ld: -N -T orphan-9.ld --no-warn-rwx-segments #objdump: -h #xfail: [uses_genelf] diff --git a/ld/testsuite/ld-elf/orphan-11.d b/ld/testsuite/ld-elf/orphan-11.d index a9936f2..78b5042 100644 --- a/ld/testsuite/ld-elf/orphan-11.d +++ b/ld/testsuite/ld-elf/orphan-11.d @@ -1,5 +1,5 @@ #source: orphan-11.s -#ld: -T orphan-11.ld --orphan-handling=error +#ld: -T orphan-11.ld --orphan-handling=error --no-warn-rwx-segments #objdump: -wh #... diff --git a/ld/testsuite/ld-elf/orphan-12.d b/ld/testsuite/ld-elf/orphan-12.d index b0d4c2f..ab1a872 100644 --- a/ld/testsuite/ld-elf/orphan-12.d +++ b/ld/testsuite/ld-elf/orphan-12.d @@ -1,5 +1,5 @@ #source: orphan-12.s -#ld: -T orphan-11.ld --strip-debug --orphan-handling=error +#ld: -T orphan-11.ld --strip-debug --orphan-handling=error --no-warn-rwx-segments #objdump: -wh #... diff --git a/ld/testsuite/ld-elf/orphan-5.d b/ld/testsuite/ld-elf/orphan-5.d index 4f99cd0..4ad2dda 100644 --- a/ld/testsuite/ld-elf/orphan-5.d +++ b/ld/testsuite/ld-elf/orphan-5.d @@ -1,4 +1,4 @@ #name: Report warning for orphan sections -#ld: --script orphan.ld --orphan-handling=warn +#ld: --script orphan.ld --orphan-handling=warn --no-warn-rwx-segments #source: orphan.s #warning_output: orphan-5.l diff --git a/ld/testsuite/ld-elf/orphan-7.d b/ld/testsuite/ld-elf/orphan-7.d index 01d6e80..028f74b 100644 --- a/ld/testsuite/ld-elf/orphan-7.d +++ b/ld/testsuite/ld-elf/orphan-7.d @@ -1,4 +1,4 @@ #name: Discard orphan sections -#ld: --script orphan.ld --orphan-handling=discard +#ld: --script orphan.ld --orphan-handling=discard --no-warn-rwx-segments #source: orphan.s #map: orphan-7.map diff --git a/ld/testsuite/ld-elf/orphan-8.d b/ld/testsuite/ld-elf/orphan-8.d index bbd7288..e7ba78a 100644 --- a/ld/testsuite/ld-elf/orphan-8.d +++ b/ld/testsuite/ld-elf/orphan-8.d @@ -1,4 +1,4 @@ #name: Place orphan sections -#ld: --script orphan.ld --orphan-handling=place +#ld: --script orphan.ld --orphan-handling=place --no-warn-rwx-segments #source: orphan.s #map: orphan-8.map diff --git a/ld/testsuite/ld-elf/orphan-9.d b/ld/testsuite/ld-elf/orphan-9.d index 27efb81..5a8e8f1 100644 --- a/ld/testsuite/ld-elf/orphan-9.d +++ b/ld/testsuite/ld-elf/orphan-9.d @@ -1,5 +1,5 @@ #source: orphan-9.s -#ld: -N -T orphan-9.ld +#ld: -N -T orphan-9.ld --no-warn-rwx-segments #objdump: -h #xfail: [uses_genelf] diff --git a/ld/testsuite/ld-elf/orphan-region.d b/ld/testsuite/ld-elf/orphan-region.d index 1343574..3f5bfd7 100644 --- a/ld/testsuite/ld-elf/orphan-region.d +++ b/ld/testsuite/ld-elf/orphan-region.d @@ -1,5 +1,5 @@ #source: orphan-region.s -#ld: -T orphan-region.ld -N -z stack-size=0 +#ld: -T orphan-region.ld -N -z stack-size=0 --no-warn-rwx-segments #readelf: -S -l --wide #xfail: [uses_genelf] hppa*64*-*-* spu-*-* *-*-nacl* # if not using elf.em, you don't get fancy orphan handling diff --git a/ld/testsuite/ld-elf/orphan.d b/ld/testsuite/ld-elf/orphan.d index 9219cf7..db0e939 100644 --- a/ld/testsuite/ld-elf/orphan.d +++ b/ld/testsuite/ld-elf/orphan.d @@ -1,5 +1,5 @@ #source: orphan.s -#ld: -T orphan.ld +#ld: -T orphan.ld --no-warn-rwx-segments #readelf: -S --wide #xfail: [uses_genelf] # if not using elf.em, you don't get fancy orphan handling diff --git a/ld/testsuite/ld-elf/pr19539.d b/ld/testsuite/ld-elf/pr19539.d index 99cfd9d..f5de3b4 100644 --- a/ld/testsuite/ld-elf/pr19539.d +++ b/ld/testsuite/ld-elf/pr19539.d @@ -1,6 +1,6 @@ #source: start.s #source: pr19539.s -#ld: -pie -T pr19539.t --warn-textrel +#ld: -pie -T pr19539.t --warn-textrel --no-warn-rwx-segments #readelf : --dyn-syms --wide #warning: .*: creating DT_TEXTREL in a PIE #target: *-*-linux* *-*-gnu* *-*-solaris* arm*-*-uclinuxfdpiceabi diff --git a/ld/testsuite/ld-elf/pr26256-1a.d b/ld/testsuite/ld-elf/pr26256-1a.d index 025ace0..b8795c4 100644 --- a/ld/testsuite/ld-elf/pr26256-1a.d +++ b/ld/testsuite/ld-elf/pr26256-1a.d @@ -1,5 +1,5 @@ #source: pr26256-1.s -#ld: -e _start -T pr26256-1.t +#ld: -e _start -T pr26256-1.t --no-warn-rwx-segments #nm: -n #... diff --git a/ld/testsuite/ld-elf/pr26907.d b/ld/testsuite/ld-elf/pr26907.d index 1efb8cc..c046f65 100644 --- a/ld/testsuite/ld-elf/pr26907.d +++ b/ld/testsuite/ld-elf/pr26907.d @@ -1,4 +1,4 @@ -#ld: -T pr26907.ld +#ld: -T pr26907.ld --no-warn-rwx-segments #readelf: -lW #xfail: dlx-*-* ft32-*-* h8300-*-* ip2k-*-* m32r*-*-elf* m32r*-*-rtems* #xfail: moxie-*-* msp430-*-* mt-*-* pru*-*-* visium-*-* diff --git a/ld/testsuite/ld-elf/pr28597.d b/ld/testsuite/ld-elf/pr28597.d index 886182c..911e652 100644 --- a/ld/testsuite/ld-elf/pr28597.d +++ b/ld/testsuite/ld-elf/pr28597.d @@ -1,3 +1,3 @@ -#ld: -shared -T pr28597.t +#ld: -shared -T pr28597.t --no-warn-rwx-segments #error: .*: discarded output section: `.plt' #target: i?86-*-* x86_64-*-* diff --git a/ld/testsuite/ld-elf/retain2.d b/ld/testsuite/ld-elf/retain2.d index 1a63f51..1bd7aaf 100644 --- a/ld/testsuite/ld-elf/retain2.d +++ b/ld/testsuite/ld-elf/retain2.d @@ -1,5 +1,5 @@ #name: SHF_GNU_RETAIN 2 (remove SHF_GNU_RETAIN sections by placing in /DISCARD/) #source: retain1.s -#ld: -e _start -Map=retain2.map --gc-sections --script=retain2.ld +#ld: -e _start -Map=retain2.map --gc-sections --script=retain2.ld --no-warn-rwx-segments #map: retain2.map #notarget: ![supports_gnu_osabi] ![check_gc_sections_available] diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp index 1e7b7f1..a2b27f38 100644 --- a/ld/testsuite/ld-elf/shared.exp +++ b/ld/testsuite/ld-elf/shared.exp @@ -259,13 +259,13 @@ if { [check_gc_sections_available] } { "pr20828-v.so"] \ [list \ "PR ld/20828 forcibly exported symbol version without section GC" \ - "$LFLAGS --no-dynamic-linker -e foo -E -T pr20828-v.ld" "" "" \ + "$LFLAGS --no-dynamic-linker -e foo -E -T pr20828-v.ld --no-error-rwx-segments" "" "" \ {pr20828-v.s} \ {{objdump -p pr20828-v.od}} \ "pr20828-v-1"] \ [list \ "PR ld/20828 forcibly exported symbol version with section GC" \ - "$LFLAGS --no-dynamic-linker -e foo --gc-sections -E -T pr20828-v.ld" "" "" \ + "$LFLAGS --no-dynamic-linker -e foo --gc-sections -E -T pr20828-v.ld --no-error-rwx-segments" "" "" \ {pr20828-v.s} \ {{objdump -p pr20828-v.od}} \ "pr20828-v-2"]] @@ -282,7 +282,7 @@ if { [check_gc_sections_available] } { [list \ "PR ld/21233 dynamic symbols with section GC\ (auxiliary shared library)" \ - "$LFLAGS -shared -T pr21233.ld" "" "$AFLAGS_PIC" \ + "$LFLAGS -shared -T pr21233.ld --no-error-rwx-segments" "" "$AFLAGS_PIC" \ {pr21233-l.s} \ {{readelf --dyn-syms pr21233-l.sd}} \ "libpr21233.so"]] @@ -290,7 +290,7 @@ if { [check_gc_sections_available] } { run_ld_link_tests [list \ [list \ "PR ld/21233 dynamic symbols with section GC (--undefined)" \ - "$LFLAGS --gc-sections -e foo --undefined=bar -T pr21233.ld" \ + "$LFLAGS --gc-sections -e foo --undefined=bar -T pr21233.ld --no-error-rwx-segments" \ "tmpdir/libpr21233.so" "" \ {pr21233.s} \ {{readelf --dyn-syms pr21233.sd}} \ @@ -300,7 +300,7 @@ if { [check_gc_sections_available] } { [list \ "PR ld/21233 dynamic symbols with section GC (--require-defined)" \ "$LFLAGS --gc-sections -e foo --require-defined=bar\ - -T pr21233.ld" \ + -T pr21233.ld --no-error-rwx-segments" \ "tmpdir/libpr21233.so" "" \ {pr21233.s} \ {{readelf --dyn-syms pr21233.sd}} \ @@ -309,7 +309,7 @@ if { [check_gc_sections_available] } { run_ld_link_tests [list \ [list \ "PR ld/21233 dynamic symbols with section GC (EXTERN)" \ - "$LFLAGS --gc-sections -e foo -T pr21233-e.ld" \ + "$LFLAGS --gc-sections -e foo -T pr21233-e.ld --no-error-rwx-segments" \ "tmpdir/libpr21233.so" "" \ {pr21233.s} \ {{readelf --dyn-syms pr21233.sd}} \ diff --git a/ld/testsuite/ld-elf/size-1.d b/ld/testsuite/ld-elf/size-1.d index a6f9f4f..3c1e282 100644 --- a/ld/testsuite/ld-elf/size-1.d +++ b/ld/testsuite/ld-elf/size-1.d @@ -1,5 +1,5 @@ #source: size-1.s -#ld: -T size-1.t +#ld: -T size-1.t --no-warn-rwx-segments #objdump: -s # v850 .tdata/.tbss are not TLS sections #xfail: v850*-*-* diff --git a/ld/testsuite/ld-elf/textaddr7.d b/ld/testsuite/ld-elf/textaddr7.d index 89fcee6..aa74534 100644 --- a/ld/testsuite/ld-elf/textaddr7.d +++ b/ld/testsuite/ld-elf/textaddr7.d @@ -1,5 +1,5 @@ #source: maxpage1.s -#ld: -n -z max-page-size=0x200000 -Ttext-segment 0x10000 +#ld: -n -z max-page-size=0x200000 -Ttext-segment 0x10000 --no-warn-rwx-segments #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* arm*-*-uclinuxfdpiceabi diff --git a/ld/testsuite/ld-elf/warn1.d b/ld/testsuite/ld-elf/warn1.d index 8307664..e885303 100644 --- a/ld/testsuite/ld-elf/warn1.d +++ b/ld/testsuite/ld-elf/warn1.d @@ -1,7 +1,7 @@ #source: start.s #source: symbol1ref.s #source: symbol1w.s -#ld: -T group.ld +#ld: -T group.ld --no-warn-rwx-segments #warning: ^[^\n]*\): warning: witty one-liner$ #readelf: -s #xfail: [is_generic] diff --git a/ld/testsuite/ld-elf/warn2.d b/ld/testsuite/ld-elf/warn2.d index 43743cd..6cbffca 100644 --- a/ld/testsuite/ld-elf/warn2.d +++ b/ld/testsuite/ld-elf/warn2.d @@ -1,7 +1,7 @@ #source: start.s #source: symbol2ref.s #source: symbol2w.s -#ld: -T group.ld +#ld: -T group.ld --no-warn-rwx-segments #warning: ^[^\n]*\.[obj]+: warning: function 'Foo' used$ #readelf: -s # if not using elf.em, you don't get fancy section handling diff --git a/ld/testsuite/ld-i386/discarded1.d b/ld/testsuite/ld-i386/discarded1.d index 8106db3..73e589a 100644 --- a/ld/testsuite/ld-i386/discarded1.d +++ b/ld/testsuite/ld-i386/discarded1.d @@ -1,3 +1,3 @@ #as: --32 -#ld: -melf_i386 -T discarded1.t +#ld: -melf_i386 -T discarded1.t --no-error-rwx-segments #error: .*discarded output section: `.got.plt' diff --git a/ld/testsuite/ld-i386/pr19175.d b/ld/testsuite/ld-i386/pr19175.d index aaf929f..a65015e 100644 --- a/ld/testsuite/ld-i386/pr19175.d +++ b/ld/testsuite/ld-i386/pr19175.d @@ -1,6 +1,6 @@ #source: pr19175.s #as: --32 -mrelax-relocations=yes -#ld: -Bsymbolic -shared -melf_i386 -T pr19175.t +#ld: -Bsymbolic -shared -melf_i386 -T pr19175.t --no-error-rwx-segments #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-i386/pr19539.d b/ld/testsuite/ld-i386/pr19539.d index f0644a3..41c56f4 100644 --- a/ld/testsuite/ld-i386/pr19539.d +++ b/ld/testsuite/ld-i386/pr19539.d @@ -1,5 +1,5 @@ #as: --32 -#ld: -pie -m elf_i386 -T pr19539.t -z notext +#ld: -pie -m elf_i386 -T pr19539.t -z notext --no-error-rwx-segments #readelf: -r --wide Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 1 entry: diff --git a/ld/testsuite/ld-i386/pr23189.d b/ld/testsuite/ld-i386/pr23189.d index d388830..3c3a665 100644 --- a/ld/testsuite/ld-i386/pr23189.d +++ b/ld/testsuite/ld-i386/pr23189.d @@ -1,5 +1,5 @@ #as: --32 -mrelax-relocations=yes -#ld: -shared -melf_i386 -T pr23189.t +#ld: -shared -melf_i386 -T pr23189.t --no-error-rwx-segments #readelf: -r --wide There are no relocations in this file. diff --git a/ld/testsuite/ld-plugin/lto-3r.d b/ld/testsuite/ld-plugin/lto-3r.d index fd1bfd2..43e2583 100644 --- a/ld/testsuite/ld-plugin/lto-3r.d +++ b/ld/testsuite/ld-plugin/lto-3r.d @@ -1,4 +1,4 @@ -#ld: -r tmpdir/lto-3b.o +#ld: -r tmpdir/lto-3b.o --no-error-execstack #source: dummy.s #nm: -p diff --git a/ld/testsuite/ld-plugin/lto-5r.d b/ld/testsuite/ld-plugin/lto-5r.d index c35e2bc..b53e355 100644 --- a/ld/testsuite/ld-plugin/lto-5r.d +++ b/ld/testsuite/ld-plugin/lto-5r.d @@ -1,4 +1,4 @@ -#ld: -r tmpdir/lto-5a.o tmpdir/lto-5b.o +#ld: -r tmpdir/lto-5a.o tmpdir/lto-5b.o --no-error-execstack #source: dummy.s #nm: -p diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp index 6f728d7..e71cf36 100644 --- a/ld/testsuite/ld-plugin/lto.exp +++ b/ld/testsuite/ld-plugin/lto.exp @@ -127,7 +127,7 @@ set lto_link_tests [list \ "" "-flto -O2 $lto_fat $NOSANITIZE_CFLAGS" \ {pr12758b.c} {} "libpr12758.a"] \ [list "PR ld/12758" \ - "$NOPIE_LDFLAGS $NOSANITIZE_CFLAGS -O2 -Wl,-e,foo -nostdlib -flto -fuse-linker-plugin tmpdir/pr12758a.o -Wl,--start-group tmpdir/libpr12758.a -Wl,--end-group" \ + "$NOPIE_LDFLAGS $NOSANITIZE_CFLAGS -O2 -Wl,-e,foo -nostdlib -flto -fuse-linker-plugin tmpdir/pr12758a.o -Wl,--start-group tmpdir/libpr12758.a -Wl,--end-group -Wl,--no-error-execstack" \ "$NOSANITIZE_CFLAGS" \ {dummy.c} {} "pr12758.exe"] \ [list "Build libpr13183.a" \ @@ -919,7 +919,7 @@ run_cc_link_tests $lto_link_symbol_tests run_ld_link_tests [list \ [list "PR ld/19317 (2)" \ - "-r tmpdir/pr19317.o" "" "" \ + "-r tmpdir/pr19317.o --no-error-execstack" "" "" \ {dummy.s} {} "pr19317-r.o"] \ ] diff --git a/ld/testsuite/ld-powerpc/ppc476-shared.d b/ld/testsuite/ld-powerpc/ppc476-shared.d index 3b2cc8a..44a9f59 100644 --- a/ld/testsuite/ld-powerpc/ppc476-shared.d +++ b/ld/testsuite/ld-powerpc/ppc476-shared.d @@ -1,6 +1,6 @@ #source: ppc476-shared.s #as: -a32 -#ld: -melf32ppc -q -shared -z common-page-size=0x10000 -z notext --ppc476-workaround -T ppc476-shared.lnk +#ld: -melf32ppc -q -shared -z common-page-size=0x10000 -z notext --ppc476-workaround -T ppc476-shared.lnk --no-error-rwx-segments #objdump: -dr #target: powerpc*-*-* diff --git a/ld/testsuite/ld-powerpc/ppc476-shared2.d b/ld/testsuite/ld-powerpc/ppc476-shared2.d index 269e257..0cc83d9 100644 --- a/ld/testsuite/ld-powerpc/ppc476-shared2.d +++ b/ld/testsuite/ld-powerpc/ppc476-shared2.d @@ -1,6 +1,6 @@ #source: ppc476-shared.s #as: -a32 -#ld: -melf32ppc -shared -z common-page-size=0x10000 -z notext --ppc476-workaround -T ppc476-shared.lnk +#ld: -melf32ppc -shared -z common-page-size=0x10000 -z notext --ppc476-workaround -T ppc476-shared.lnk --no-error-rwx-segments #objdump: -R #target: powerpc*-*-* diff --git a/ld/testsuite/ld-powerpc/pr28827-2.d b/ld/testsuite/ld-powerpc/pr28827-2.d index 8da819d..063dca6 100644 --- a/ld/testsuite/ld-powerpc/pr28827-2.d +++ b/ld/testsuite/ld-powerpc/pr28827-2.d @@ -1,5 +1,5 @@ #as: -a64 -#ld: -melf64ppc --plt-align=0 -T pr28827-2.lnk +#ld: -melf64ppc --plt-align=0 -T pr28827-2.lnk --no-error-rwx-segments #objdump: -dr .*: file format .* diff --git a/ld/testsuite/ld-s390/s390.exp b/ld/testsuite/ld-s390/s390.exp index ceaffd4..823d8aa 100644 --- a/ld/testsuite/ld-s390/s390.exp +++ b/ld/testsuite/ld-s390/s390.exp @@ -81,7 +81,7 @@ set s390xtests { {{objdump -dzrj.text gotreloc_64-relro-1.dd}} "gotreloc_64-1"} {"PLT: offset test" - "-shared -m elf64_s390 -dT pltoffset-1.ld" "" + "-shared -m elf64_s390 -dT pltoffset-1.ld --no-error-rwx-segments" "" "-m64" {pltoffset-1.s} {{objdump "-dzrj.text --stop-address=16" pltoffset-1.dd}} "pltoffset-1"} diff --git a/ld/testsuite/ld-scripts/align2a.d b/ld/testsuite/ld-scripts/align2a.d index 96237dd..bf50c56 100644 --- a/ld/testsuite/ld-scripts/align2a.d +++ b/ld/testsuite/ld-scripts/align2a.d @@ -1,4 +1,4 @@ -# ld: --defsym data_align=16 -T align2.t +# ld: --defsym data_align=16 -T align2.t --no-error-rwx-segments # objdump: --section-headers [^:]+: +file format.* diff --git a/ld/testsuite/ld-scripts/align2b.d b/ld/testsuite/ld-scripts/align2b.d index 05d2a15..86a5f86 100644 --- a/ld/testsuite/ld-scripts/align2b.d +++ b/ld/testsuite/ld-scripts/align2b.d @@ -1,4 +1,4 @@ -# ld: --defsym data_align=32 -T align2.t +# ld: --defsym data_align=32 -T align2.t --no-error-rwx-segments # objdump: --section-headers [^:]+: +file +format.* diff --git a/ld/testsuite/ld-scripts/align5.d b/ld/testsuite/ld-scripts/align5.d index 880b6fb..40290b8 100644 --- a/ld/testsuite/ld-scripts/align5.d +++ b/ld/testsuite/ld-scripts/align5.d @@ -1,7 +1,7 @@ # source: align2a.s -# ld: -T align5.t +# ld: -T align5.t --no-error-rwx-segments # nm: -n #... .*foo -#...
\ No newline at end of file +#... diff --git a/ld/testsuite/ld-scripts/alignof.exp b/ld/testsuite/ld-scripts/alignof.exp index 044ce37..791dd61 100644 --- a/ld/testsuite/ld-scripts/alignof.exp +++ b/ld/testsuite/ld-scripts/alignof.exp @@ -39,7 +39,7 @@ if { [is_pecoff_format] } { } if ![ld_link $ld tmpdir/alignof "-T $srcdir/$subdir/alignof.t \ - $IMAGE_BASE tmpdir/alignof.o"] { + $IMAGE_BASE tmpdir/alignof.o --no-error-rwx-segments"] { fail $testname return } diff --git a/ld/testsuite/ld-scripts/crossref.exp b/ld/testsuite/ld-scripts/crossref.exp index fdd5a3b..50a4a73 100644 --- a/ld/testsuite/ld-scripts/crossref.exp +++ b/ld/testsuite/ld-scripts/crossref.exp @@ -80,7 +80,7 @@ if [is_pecoff_format] { append flags " --image-base 0" } -set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross1 -T $srcdir/$subdir/cross1.t tmpdir/cross1.o tmpdir/cross2.o"] +set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross1 -T $srcdir/$subdir/cross1.t tmpdir/cross1.o tmpdir/cross2.o --no-error-rwx-segments"] set exec_output [prune_warnings $exec_output] @@ -105,7 +105,7 @@ if { ![ld_compile "$CC_FOR_TARGET $NOSANITIZE_CFLAGS $NOLTO_CFLAGS" "$srcdir/$su return } -set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross2 -T $srcdir/$subdir/cross2.t tmpdir/cross3.o"] +set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross2 -T $srcdir/$subdir/cross2.t tmpdir/cross3.o --no-error-rwx-segments"] set exec_output [prune_warnings $exec_output] regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output @@ -135,7 +135,7 @@ if ![ld_relocate $ld tmpdir/cross3-partial.o "tmpdir/cross1.o tmpdir/cross4.o"] return } -set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross3 -T $srcdir/$subdir/cross3.t tmpdir/cross3-partial.o tmpdir/cross2.o"] +set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross3 -T $srcdir/$subdir/cross3.t tmpdir/cross3-partial.o tmpdir/cross2.o --no-error-rwx-segments"] set exec_output [prune_warnings $exec_output] @@ -148,7 +148,7 @@ if [string match "" $exec_output] then { fail $test3 } -set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross4 -T $srcdir/$subdir/cross4.t tmpdir/cross4.o"] +set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross4 -T $srcdir/$subdir/cross4.t tmpdir/cross4.o --no-error-rwx-segments"] set exec_output [prune_warnings $exec_output] regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output @@ -160,7 +160,7 @@ if [string match "" $exec_output] then { fail $test4 } -set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross5 -T $srcdir/$subdir/cross5.t tmpdir/cross4.o"] +set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross5 -T $srcdir/$subdir/cross5.t tmpdir/cross4.o --no-error-rwx-segments"] set exec_output [prune_warnings $exec_output] regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output @@ -176,7 +176,7 @@ if [string match "" $exec_output] then { } } -set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross6 -T $srcdir/$subdir/cross6.t tmpdir/cross3.o"] +set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross6 -T $srcdir/$subdir/cross6.t tmpdir/cross3.o --no-error-rwx-segments"] set exec_output [prune_warnings $exec_output] regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output @@ -188,7 +188,7 @@ if [string match "" $exec_output] then { fail $test6 } -set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross7 -T $srcdir/$subdir/cross7.t tmpdir/cross3.o"] +set exec_output [run_host_cmd "$ld" "$flags -o tmpdir/cross7 -T $srcdir/$subdir/cross7.t tmpdir/cross3.o --no-error-rwx-segments"] set exec_output [prune_warnings $exec_output] regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output diff --git a/ld/testsuite/ld-scripts/defined2.d b/ld/testsuite/ld-scripts/defined2.d index 6e6e068..7508452 100644 --- a/ld/testsuite/ld-scripts/defined2.d +++ b/ld/testsuite/ld-scripts/defined2.d @@ -1,4 +1,4 @@ -#ld: -Tdefined2.t +#ld: -Tdefined2.t --no-error-rwx-segments #nm: -B #source: phdrs.s diff --git a/ld/testsuite/ld-scripts/defined3.d b/ld/testsuite/ld-scripts/defined3.d index 0b3831c..805f724 100644 --- a/ld/testsuite/ld-scripts/defined3.d +++ b/ld/testsuite/ld-scripts/defined3.d @@ -1,4 +1,4 @@ -#ld: -Tdefined3.t +#ld: -Tdefined3.t --no-error-rwx-segments #nm: -B #source: phdrs.s #source: defined.s diff --git a/ld/testsuite/ld-scripts/defined5.d b/ld/testsuite/ld-scripts/defined5.d index 97096f7..b5513ae 100644 --- a/ld/testsuite/ld-scripts/defined5.d +++ b/ld/testsuite/ld-scripts/defined5.d @@ -1,4 +1,4 @@ -#ld: -Tdefined5.t +#ld: -Tdefined5.t --no-error-rwx-segments #warning: .*multiple definition of `defined'.* #nm: -B diff --git a/ld/testsuite/ld-scripts/pr14962.d b/ld/testsuite/ld-scripts/pr14962.d index 4c8e370..9bdd474 100644 --- a/ld/testsuite/ld-scripts/pr14962.d +++ b/ld/testsuite/ld-scripts/pr14962.d @@ -1,4 +1,4 @@ -#ld: -Ttext=0x1000 -Tdata=0x2000 -T pr14962.t +#ld: -Ttext=0x1000 -Tdata=0x2000 -T pr14962.t --no-error-rwx-segments #source: pr14962a.s #source: pr14962b.s #nm: -n diff --git a/ld/testsuite/ld-scripts/pr18963.d b/ld/testsuite/ld-scripts/pr18963.d index bda3b06..e281299 100644 --- a/ld/testsuite/ld-scripts/pr18963.d +++ b/ld/testsuite/ld-scripts/pr18963.d @@ -1,5 +1,5 @@ # source: data.s -# ld: -T pr18963.t +# ld: -T pr18963.t --no-error-rwx-segments # nm: -B -n # notarget: *-*-vms # Skip for VMS based targets as the linker automatically adds extra libraries that may not be present in a cross build. diff --git a/ld/testsuite/ld-scripts/pr20302.d b/ld/testsuite/ld-scripts/pr20302.d index 7eb25ce..03fa61d 100644 --- a/ld/testsuite/ld-scripts/pr20302.d +++ b/ld/testsuite/ld-scripts/pr20302.d @@ -1,4 +1,4 @@ -#ld: -Tdata=0x1000 -Tdata=0x2000 -Tcross2.t +#ld: -Tdata=0x1000 -Tdata=0x2000 -Tcross2.t --no-error-rwx-segments #source: align2a.s #objdump: -h #notarget: *-*-*aout *-*-netbsd *-*-vms ns32k-*-* rx-*-* diff --git a/ld/testsuite/ld-scripts/print-memory-usage.exp b/ld/testsuite/ld-scripts/print-memory-usage.exp index 3900040..897bf07 100644 --- a/ld/testsuite/ld-scripts/print-memory-usage.exp +++ b/ld/testsuite/ld-scripts/print-memory-usage.exp @@ -51,7 +51,7 @@ run_ld_link_tests { { "print-memory-usage-2" - "-T print-memory-usage-2.t --print-memory-usage" + "-T print-memory-usage-2.t --print-memory-usage --no-error-rwx-segments" "" "" { "print-memory-usage-1.s" } diff --git a/ld/testsuite/ld-scripts/rgn-at1.d b/ld/testsuite/ld-scripts/rgn-at1.d index f301bbb..8069ac8 100644 --- a/ld/testsuite/ld-scripts/rgn-at1.d +++ b/ld/testsuite/ld-scripts/rgn-at1.d @@ -1,6 +1,6 @@ # name: rgn-at1 # source: rgn-at.s -# ld: -T rgn-at1.t +# ld: -T rgn-at1.t --no-error-rwx-segments # objdump: -w -h # xfail: rx-*-* # FAILS on the RX because the linker has to set LMA == VMA for the diff --git a/ld/testsuite/ld-scripts/rgn-at10.d b/ld/testsuite/ld-scripts/rgn-at10.d index dd52644..e11597f 100644 --- a/ld/testsuite/ld-scripts/rgn-at10.d +++ b/ld/testsuite/ld-scripts/rgn-at10.d @@ -1,5 +1,5 @@ #source: rgn-at10.s -#ld: -T rgn-at10.t +#ld: -T rgn-at10.t --no-error-rwx-segments #objdump: -h --wide #xfail: hppa*64*-*-hpux* v850*-*-* # Test that lma is adjusted in case the section start vma is aligned and diff --git a/ld/testsuite/ld-scripts/rgn-at4.d b/ld/testsuite/ld-scripts/rgn-at4.d index 9837343..3bf9e7b 100644 --- a/ld/testsuite/ld-scripts/rgn-at4.d +++ b/ld/testsuite/ld-scripts/rgn-at4.d @@ -1,6 +1,6 @@ # name: rgn-at4 # source: rgn-at.s -# ld: -T rgn-at4.t +# ld: -T rgn-at4.t --no-error-rwx-segments # objdump: -w -h # xfail: rx-*-* # FAILS on the RX because the linker has to set LMA == VMA for the diff --git a/ld/testsuite/ld-scripts/rgn-at6.d b/ld/testsuite/ld-scripts/rgn-at6.d index c706faf..95fa010 100644 --- a/ld/testsuite/ld-scripts/rgn-at6.d +++ b/ld/testsuite/ld-scripts/rgn-at6.d @@ -1,5 +1,5 @@ #source: rgn-at6.s -#ld: -T rgn-at6.t +#ld: -T rgn-at6.t --no-error-rwx-segments #objdump: -h --wide # Test that lma is aligned as for vma when lma_region==region. diff --git a/ld/testsuite/ld-scripts/rgn-at8.d b/ld/testsuite/ld-scripts/rgn-at8.d index 52725aa..e6ff29a 100644 --- a/ld/testsuite/ld-scripts/rgn-at8.d +++ b/ld/testsuite/ld-scripts/rgn-at8.d @@ -1,5 +1,5 @@ #source: rgn-at6.s -#ld: -T rgn-at8.t +#ld: -T rgn-at8.t --no-error-rwx-segments #objdump: -h --wide # Test that lma is aligned when lma_region!=region and requested by script. diff --git a/ld/testsuite/ld-scripts/rgn-at9.d b/ld/testsuite/ld-scripts/rgn-at9.d index e6384b4..02c16ed 100644 --- a/ld/testsuite/ld-scripts/rgn-at9.d +++ b/ld/testsuite/ld-scripts/rgn-at9.d @@ -1,5 +1,5 @@ #source: rgn-at6.s -#ld: -T rgn-at9.t +#ld: -T rgn-at9.t --no-error-rwx-segments #objdump: -h --wide #xfail: rx-*-* # Test that lma is adjusted in case the section start vma is aligned and diff --git a/ld/testsuite/ld-scripts/rgn-over1.d b/ld/testsuite/ld-scripts/rgn-over1.d index 902380e..3834177 100644 --- a/ld/testsuite/ld-scripts/rgn-over1.d +++ b/ld/testsuite/ld-scripts/rgn-over1.d @@ -1,6 +1,6 @@ # name: rgn-over1 # source: rgn-over.s -# ld: -T rgn-over1.t -Map tmpdir/rgn-over1.map +# ld: -T rgn-over1.t -Map tmpdir/rgn-over1.map --no-error-rwx-segments # error: \A[^ \n]*?ld[^:\n]*?: [^\n]*?section \`.text' will not fit in region `r1'\n[^ \n]*?ld[^:\n]*?: region `r1' overflowed by 16 bytes\Z #... diff --git a/ld/testsuite/ld-scripts/rgn-over2.d b/ld/testsuite/ld-scripts/rgn-over2.d index 1d7a8f9..e2ff5a6 100644 --- a/ld/testsuite/ld-scripts/rgn-over2.d +++ b/ld/testsuite/ld-scripts/rgn-over2.d @@ -1,6 +1,6 @@ # name: rgn-over2 # source: rgn-over.s -# ld: -T rgn-over2.t -Map tmpdir/rgn-over2.map +# ld: -T rgn-over2.t -Map tmpdir/rgn-over2.map --no-error-rwx-segments # error: \A[^ \n]*?ld[^:\n]*?: [^\n]*?section `\.data' will not fit in region `r1'\n[^ \n]*?ld[^:\n]*?: region `r1' overflowed by 4 bytes\Z #... diff --git a/ld/testsuite/ld-scripts/rgn-over4.d b/ld/testsuite/ld-scripts/rgn-over4.d index 8ae150d..b8086f3 100644 --- a/ld/testsuite/ld-scripts/rgn-over4.d +++ b/ld/testsuite/ld-scripts/rgn-over4.d @@ -1,6 +1,6 @@ # name: rgn-over4 # source: rgn-over.s -# ld: -T rgn-over4.t -Map tmpdir/rgn-over4.map +# ld: -T rgn-over4.t -Map tmpdir/rgn-over4.map --no-error-rwx-segments # error: \A[^ \n]*?ld[^:\n]*?: [^:\n]*?section `\.text' will not fit in region `r1'\n[^ \n]*?ld[^:\n]*?: region `r1' overflowed by 16 bytes\Z #... diff --git a/ld/testsuite/ld-scripts/rgn-over5.d b/ld/testsuite/ld-scripts/rgn-over5.d index 10a7658..34e186d 100644 --- a/ld/testsuite/ld-scripts/rgn-over5.d +++ b/ld/testsuite/ld-scripts/rgn-over5.d @@ -1,6 +1,6 @@ # name: rgn-over5 # source: rgn-over.s -# ld: -T rgn-over5.t -Map tmpdir/rgn-over5.map +# ld: -T rgn-over5.t -Map tmpdir/rgn-over5.map --no-error-rwx-segments # error: \A[^ \n]*?ld[^:\n]*?: [^\n]*?section `\.text' will not fit in region `v1'\n[^ \n]*?ld[^:\n]*?: region `v1' overflowed by 16 bytes\Z #... diff --git a/ld/testsuite/ld-scripts/rgn-over6.d b/ld/testsuite/ld-scripts/rgn-over6.d index 66c5a16..b8731ad 100644 --- a/ld/testsuite/ld-scripts/rgn-over6.d +++ b/ld/testsuite/ld-scripts/rgn-over6.d @@ -1,6 +1,6 @@ # name: rgn-over6 # source: rgn-over.s -# ld: -T rgn-over6.t -Map tmpdir/rgn-over6.map +# ld: -T rgn-over6.t -Map tmpdir/rgn-over6.map --no-error-rwx-segments # error: \A[^ \n]*?ld[^:\n]*?: [^\n]*?section `\.text' will not fit in region `r1'\n[^ \n]*?ld[^:\n]*?: [^\n]*?section `\.text' will not fit in region `v1'\n[^ \n]*?ld[^:\n]*?: region `r1' overflowed by 16 bytes\n[^ \n]*?ld[^:\n]*?: region `v1' overflowed by 16 bytes\Z #... diff --git a/ld/testsuite/ld-scripts/script.exp b/ld/testsuite/ld-scripts/script.exp index 28cc6da..2f88cab 100644 --- a/ld/testsuite/ld-scripts/script.exp +++ b/ld/testsuite/ld-scripts/script.exp @@ -190,7 +190,7 @@ if { [is_pecoff_format] } then { } set flags $LDFLAGS -if ![ld_link $ld tmpdir/script "$flags -T $srcdir/$subdir/script.t tmpdir/script.o"] { +if ![ld_link $ld tmpdir/script "$flags -T $srcdir/$subdir/script.t tmpdir/script.o --no-error-rwx-segments"] { fail $testname } else { check_script @@ -198,7 +198,7 @@ if ![ld_link $ld tmpdir/script "$flags -T $srcdir/$subdir/script.t tmpdir/script set testname "MRI script" -if ![ld_link $ld tmpdir/script "$flags -c $srcdir/$subdir/scriptm.t"] { +if ![ld_link $ld tmpdir/script "$flags -c $srcdir/$subdir/scriptm.t --no-error-rwx-segments"] { fail $testname } else { check_script diff --git a/ld/testsuite/ld-scripts/sizeof.exp b/ld/testsuite/ld-scripts/sizeof.exp index 389fde9..79a1130 100644 --- a/ld/testsuite/ld-scripts/sizeof.exp +++ b/ld/testsuite/ld-scripts/sizeof.exp @@ -34,7 +34,7 @@ if { [is_pecoff_format] } { } if ![ld_link $ld tmpdir/sizeof "$LDFLAGS -T $srcdir/$subdir/sizeof.t \ - $IMAGE_BASE tmpdir/sizeof.o"] { + $IMAGE_BASE tmpdir/sizeof.o --no-error-rwx-segments"] { fail $testname return } diff --git a/ld/testsuite/ld-scripts/sort-file.d b/ld/testsuite/ld-scripts/sort-file.d index 01eb694..8d395ac 100644 --- a/ld/testsuite/ld-scripts/sort-file.d +++ b/ld/testsuite/ld-scripts/sort-file.d @@ -1,6 +1,6 @@ #source: sort-file2.s #source: sort-file1.s -#ld: -T sort-file.t +#ld: -T sort-file.t --no-error-rwx-segments #nm: -n # Check that SORT_BY_NAME on filenames works diff --git a/ld/testsuite/ld-x86-64/discarded1.d b/ld/testsuite/ld-x86-64/discarded1.d index c892595..e6b2bca 100644 --- a/ld/testsuite/ld-x86-64/discarded1.d +++ b/ld/testsuite/ld-x86-64/discarded1.d @@ -1,3 +1,3 @@ #as: --64 -#ld: -melf_x86_64 -T discarded1.t +#ld: -melf_x86_64 -T discarded1.t --no-error-rwx-segments #error: .*discarded output section: `.got.plt' diff --git a/ld/testsuite/ld-x86-64/pr19175.d b/ld/testsuite/ld-x86-64/pr19175.d index 70e5689..171ebd4 100644 --- a/ld/testsuite/ld-x86-64/pr19175.d +++ b/ld/testsuite/ld-x86-64/pr19175.d @@ -1,6 +1,6 @@ #source: pr19175.s #as: --64 -#ld: -Bsymbolic -shared -melf_x86_64 -T pr19175.t +#ld: -Bsymbolic -shared -melf_x86_64 -T pr19175.t --no-error-rwx-segments #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19539a.d b/ld/testsuite/ld-x86-64/pr19539a.d index 3b696c5..91393b9 100644 --- a/ld/testsuite/ld-x86-64/pr19539a.d +++ b/ld/testsuite/ld-x86-64/pr19539a.d @@ -1,6 +1,6 @@ #source: pr19539.s #as: --64 -#ld: -pie -m elf_x86_64 -T pr19539.t -z notext +#ld: -pie -m elf_x86_64 -T pr19539.t -z notext --no-error-rwx-segments #readelf: -r --wide Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entry: diff --git a/ld/testsuite/ld-x86-64/pr19539b.d b/ld/testsuite/ld-x86-64/pr19539b.d index 0e50f32..b15e8e4 100644 --- a/ld/testsuite/ld-x86-64/pr19539b.d +++ b/ld/testsuite/ld-x86-64/pr19539b.d @@ -1,6 +1,6 @@ #source: pr19539.s #as: --x32 -#ld: -pie -m elf32_x86_64 -T pr19539.t -z notext +#ld: -pie -m elf32_x86_64 -T pr19539.t -z notext --no-error-rwx-segments #readelf: -r --wide Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entry: diff --git a/ld/testsuite/ld-x86-64/pr23189.d b/ld/testsuite/ld-x86-64/pr23189.d index 6fc4b7e..a22d3e2 100644 --- a/ld/testsuite/ld-x86-64/pr23189.d +++ b/ld/testsuite/ld-x86-64/pr23189.d @@ -1,5 +1,5 @@ #as: --64 -mrelax-relocations=yes -#ld: -shared -melf_x86_64 -T pr23189.t +#ld: -shared -melf_x86_64 -T pr23189.t --no-error-rwx-segments #readelf: -r --wide There are no relocations in this file. |