diff options
author | Nick Clifton <nickc@redhat.com> | 2023-11-10 11:37:27 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-11-10 11:37:27 +0000 |
commit | e922d1eaa3774a68c96eae01e0fd08f8a30cda8c (patch) | |
tree | 6d9c2ebe96dd8c440f848518bd2d087045de52ed /ld/testsuite/ld-elf | |
parent | a73c0d9b228cb11d4dd9c045c692229ff6b7b06a (diff) | |
download | gdb-e922d1eaa3774a68c96eae01e0fd08f8a30cda8c.zip gdb-e922d1eaa3774a68c96eae01e0fd08f8a30cda8c.tar.gz gdb-e922d1eaa3774a68c96eae01e0fd08f8a30cda8c.tar.bz2 |
Add ability to change linker warning messages into errors when reporting executable stacks and/or executable segments.
include
* bfdlink.h (struct bfd_link_info): Update descriptions of the 'execstack', 'noexecstack' and 'warn_execstack' fields. Add 'error_exectack' and 'warn_is_error_for_rwx_segments' fields.
bfd
* elf.c (assign_file_positions_except_relocs): Turn warnings about executable segments into errors if so requested.
* elflink.c (bfd_elf_size_dynamic_sections): Turn warnings about executable stacks into errors if so requested.
ld
* ldlex.h (enum option_values): Add OPTION_ERROR_EXECSTACK, OPTION_NO_ERROR_EXECSTACK, OPTION_WARN_EXECSTACK_OBJECTS, OPTION_ERROR_RWX_SEGMENTS and OPTION_NO_ERROR_RWX_SEGMENTS. (struct ld_option): Add new long options. (parse_args): Parse new long options. (elf_static_list_options): Display the new options.
* ld.texi: Document the new command line options.
* configure.ac (error-execstack): New configuration option. (error-rwx-segments): New configuration option.
* emultempl/elf.em (_before_parse): Initialse the new linkinfo fields.
* NEWS: Mention the new features.
* config.in: Regenerate.
* configure: Regenerate.
* testsuite/ld-elf/commonpage2.d: Disable errors for RWX segments and/or executable stacks.
* testsuite/ld-elf/elf.exp: Likewise.
* testsuite/ld-elf/header.d: Likewise.
* testsuite/ld-elf/loadaddr1.d: Likewise.
* testsuite/ld-elf/loadaddr2.d: Likewise.
* testsuite/ld-elf/maxpage4.d: Likewise.
* testsuite/ld-elf/nobits-1.d: Likewise.
* testsuite/ld-elf/note-1.d: Likewise.
* testsuite/ld-elf/orphan-10.d: Likewise.
* testsuite/ld-elf/orphan-11.d: Likewise.
* testsuite/ld-elf/orphan-12.d: Likewise.
* testsuite/ld-elf/orphan-5.d: Likewise.
* testsuite/ld-elf/orphan-7.d: Likewise.
* testsuite/ld-elf/orphan-8.d: Likewise.
* testsuite/ld-elf/orphan-9.d: Likewise.
* testsuite/ld-elf/orphan-region.d: Likewise.
* testsuite/ld-elf/orphan.d: Likewise.
* testsuite/ld-elf/pr19539.d: Likewise.
* testsuite/ld-elf/pr26256-1a.d: Likewise.
* testsuite/ld-elf/pr26907.d: Likewise.
* testsuite/ld-elf/pr28597.d: Likewise.
* testsuite/ld-elf/retain2.d: Likewise.
* testsuite/ld-elf/shared.exp: Likewise.
* testsuite/ld-elf/size-1.d: Likewise.
* testsuite/ld-elf/textaddr7.d: Likewise.
* testsuite/ld-elf/warn1.d: Likewise.
* testsuite/ld-elf/warn2.d: Likewise.
* testsuite/ld-i386/discarded1.d: Likewise.
* testsuite/ld-i386/pr19175.d: Likewise.
* testsuite/ld-i386/pr19539.d: Likewise.
* testsuite/ld-i386/pr23189.d: Likewise.
* testsuite/ld-plugin/lto-3r.d: Likewise.
* testsuite/ld-plugin/lto-5r.d: Likewise.
* testsuite/ld-plugin/lto.exp: Likewise.
* testsuite/ld-powerpc/ppc476-shared.d: Likewise.
* testsuite/ld-powerpc/ppc476-shared2.d: Likewise.
* testsuite/ld-powerpc/pr28827-2.d: Likewise.
* testsuite/ld-s390/s390.exp: Likewise.
* testsuite/ld-scripts/align2a.d: Likewise.
* testsuite/ld-scripts/align2b.d: Likewise.
* testsuite/ld-scripts/align5.d: Likewise.
* testsuite/ld-scripts/alignof.exp: Likewise.
* testsuite/ld-scripts/crossref.exp: Likewise.
* testsuite/ld-scripts/defined2.d: Likewise.
* testsuite/ld-scripts/defined3.d: Likewise.
* testsuite/ld-scripts/defined5.d: Likewise.
* testsuite/ld-scripts/pr14962.d: Likewise.
* testsuite/ld-scripts/pr18963.d: Likewise.
* testsuite/ld-scripts/pr20302.d: Likewise.
* testsuite/ld-scripts/print-memory-usage.exp: Likewise.
* testsuite/ld-scripts/rgn-at1.d: Likewise.
* testsuite/ld-scripts/rgn-at10.d: Likewise.
* testsuite/ld-scripts/rgn-at4.d: Likewise.
* testsuite/ld-scripts/rgn-at6.d: Likewise.
* testsuite/ld-scripts/rgn-at8.d: Likewise.
* testsuite/ld-scripts/rgn-at9.d: Likewise.
* testsuite/ld-scripts/rgn-over1.d: Likewise.
* testsuite/ld-scripts/rgn-over2.d: Likewise.
* testsuite/ld-scripts/rgn-over4.d: Likewise.
* testsuite/ld-scripts/rgn-over5.d: Likewise.
* testsuite/ld-scripts/rgn-over6.d: Likewise.
* testsuite/ld-scripts/script.exp: Likewise.
* testsuite/ld-scripts/sizeof.exp: Likewise.
* testsuite/ld-scripts/sort-file.d: Likewise.
* testsuite/ld-x86-64/discarded1.d: Likewise.
* testsuite/ld-x86-64/pr19175.d: Likewise.
* testsuite/ld-x86-64/pr19539a.d: Likewise.
* testsuite/ld-x86-64/pr19539b.d: Likewise.
* testsuite/ld-x86-64/pr23189.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf')
27 files changed, 38 insertions, 38 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 |