diff options
author | Nick Clifton <nickc@redhat.com> | 2024-06-13 17:00:29 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2024-06-13 17:00:29 +0100 |
commit | 54904469f71c06102e15707c2cb4964e496a8ed6 (patch) | |
tree | 33aa262a6614d71090946f273562e5b4737c0304 /ld | |
parent | 2f43916ead97b183348581e4fd4489cd59845e62 (diff) | |
download | gdb-54904469f71c06102e15707c2cb4964e496a8ed6.zip gdb-54904469f71c06102e15707c2cb4964e496a8ed6.tar.gz gdb-54904469f71c06102e15707c2cb4964e496a8ed6.tar.bz2 |
Adjust linker tests that are sensitive to --rosegment
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-elf/mbind1b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/mbind1c.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr30508.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/i386.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/ilp32-4.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1a-x32.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1b-x32.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1c-x32.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1c.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1d-x32.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/mark-plt-1d.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pe-x86-64.exp | 12 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19609-4e.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19609-6a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19609-6b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19609-7b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/pr19609-7d.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/sframe-plt-1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/sframe-simple-1.d | 2 |
21 files changed, 26 insertions, 26 deletions
diff --git a/ld/testsuite/ld-elf/mbind1b.d b/ld/testsuite/ld-elf/mbind1b.d index 137f8b6..e1f998a 100644 --- a/ld/testsuite/ld-elf/mbind1b.d +++ b/ld/testsuite/ld-elf/mbind1b.d @@ -1,5 +1,5 @@ #source: mbind1.s -#ld: -shared -z common-page-size=0x1000 -z max-page-size=0x200000 +#ld: -shared -z common-page-size=0x1000 -z max-page-size=0x200000 --no-rosegment #readelf: -S -l --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi #xfail: ![check_shared_lib_support] diff --git a/ld/testsuite/ld-elf/mbind1c.d b/ld/testsuite/ld-elf/mbind1c.d index 9cc333e..dcae3c0 100644 --- a/ld/testsuite/ld-elf/mbind1c.d +++ b/ld/testsuite/ld-elf/mbind1c.d @@ -1,5 +1,5 @@ #source: mbind1.s -#ld: -pie -z common-page-size=0x1000 -z max-page-size=0x200000 +#ld: -pie -z common-page-size=0x1000 -z max-page-size=0x200000 --no-rosegment #readelf: -S -l --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi #xfail: ![check_pie_support] diff --git a/ld/testsuite/ld-elf/pr30508.d b/ld/testsuite/ld-elf/pr30508.d index aca9a83..325ff40 100644 --- a/ld/testsuite/ld-elf/pr30508.d +++ b/ld/testsuite/ld-elf/pr30508.d @@ -1,4 +1,4 @@ -#ld: -z separate-code +#ld: -z separate-code --no-rosegment #objcopy_linked_file: -R .foo #readelf: -lW #target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp index 18d1c91..9401988 100644 --- a/ld/testsuite/ld-i386/i386.exp +++ b/ld/testsuite/ld-i386/i386.exp @@ -191,7 +191,7 @@ set i386tests { {"Reloc section order" "-shared -melf_i386 -z nocombreloc -z notext" "" "--32" {reloc.s} {{objdump -hw reloc.d}} "reloc.so"} - {"Basic --emit-relocs support" "-shared -melf_i386 --emit-relocs" "" "--32" + {"Basic --emit-relocs support" "-shared -melf_i386 --emit-relocs --no-rosegment" "" "--32" {emit-relocs.s} {{readelf --relocs emit-relocs.rd}} "emit-relocs.so"} {"-z combreloc relocation sections" "-shared -melf_i386 -z combreloc" "" "--32" {combreloc.s} {{readelf -r combreloc.d}} "combreloc.so"} diff --git a/ld/testsuite/ld-x86-64/ilp32-4.d b/ld/testsuite/ld-x86-64/ilp32-4.d index ad5c9cd..e737aa4 100644 --- a/ld/testsuite/ld-x86-64/ilp32-4.d +++ b/ld/testsuite/ld-x86-64/ilp32-4.d @@ -1,5 +1,5 @@ #as: --x32 -#ld: -m elf32_x86_64 -shared --no-ld-generated-unwind-info --hash-style=sysv $NO_DT_RELR_LDFLAGS +#ld: -m elf32_x86_64 -shared --no-ld-generated-unwind-info --hash-style=sysv $NO_DT_RELR_LDFLAGS --no-rosegment #readelf: -d -S --wide #target: x86_64-*-linux* diff --git a/ld/testsuite/ld-x86-64/mark-plt-1a-x32.d b/ld/testsuite/ld-x86-64/mark-plt-1a-x32.d index 2051356..4bef117 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1a-x32.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1a-x32.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --x32 -#ld: -melf32_x86_64 -shared -z mark-plt +#ld: -melf32_x86_64 -shared -z mark-plt --no-rosegment #readelf: -drW #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1a.d b/ld/testsuite/ld-x86-64/mark-plt-1a.d index a252e95..f6b246e 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1a.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1a.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --64 -#ld: -melf_x86_64 -shared -z mark-plt +#ld: -melf_x86_64 -shared -z mark-plt --no-rosegment #readelf: -drW #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1b-x32.d b/ld/testsuite/ld-x86-64/mark-plt-1b-x32.d index 848d45e..d105768 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1b-x32.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1b-x32.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --x32 -#ld: -melf32_x86_64 -shared -z mark-plt --hash-style=both +#ld: -melf32_x86_64 -shared -z mark-plt --hash-style=both --no-rosegment #objdump: -dw #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1b.d b/ld/testsuite/ld-x86-64/mark-plt-1b.d index a5c6931..9af69fd 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1b.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1b.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --64 -#ld: -melf_x86_64 -shared -z mark-plt --hash-style=both +#ld: -melf_x86_64 -shared -z mark-plt --hash-style=both --no-rosegment #objdump: -dw #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1c-x32.d b/ld/testsuite/ld-x86-64/mark-plt-1c-x32.d index 6354dc3..6ea71a1 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1c-x32.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1c-x32.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --x32 -#ld: -melf32_x86_64 -shared -z mark-plt -z ibtplt +#ld: -melf32_x86_64 -shared -z mark-plt -z ibtplt --no-rosegment #readelf: -drW #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1c.d b/ld/testsuite/ld-x86-64/mark-plt-1c.d index e11e0b7..1713c88 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1c.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1c.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --64 -#ld: -melf_x86_64 -shared -z mark-plt -z ibtplt +#ld: -melf_x86_64 -shared -z mark-plt -z ibtplt --no-rosegment #readelf: -drW #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1d-x32.d b/ld/testsuite/ld-x86-64/mark-plt-1d-x32.d index f08c99e..0e709d6 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1d-x32.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1d-x32.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --x32 -#ld: -melf32_x86_64 -shared -z mark-plt -z ibtplt --hash-style=both +#ld: -melf32_x86_64 -shared -z mark-plt -z ibtplt --hash-style=both --no-rosegment #objdump: -dw #... diff --git a/ld/testsuite/ld-x86-64/mark-plt-1d.d b/ld/testsuite/ld-x86-64/mark-plt-1d.d index 9ca8d65..1ec9a9c 100644 --- a/ld/testsuite/ld-x86-64/mark-plt-1d.d +++ b/ld/testsuite/ld-x86-64/mark-plt-1d.d @@ -1,6 +1,6 @@ #source: mark-plt-1.s #as: --64 -#ld: -melf_x86_64 -shared -z mark-plt -z ibtplt --hash-style=both +#ld: -melf_x86_64 -shared -z mark-plt -z ibtplt --hash-style=both --no-rosegment #objdump: -dw #... diff --git a/ld/testsuite/ld-x86-64/pe-x86-64.exp b/ld/testsuite/ld-x86-64/pe-x86-64.exp index 6244061..2dfbb16 100644 --- a/ld/testsuite/ld-x86-64/pe-x86-64.exp +++ b/ld/testsuite/ld-x86-64/pe-x86-64.exp @@ -27,7 +27,7 @@ if {![istarget "x86_64-*-linux*"] } { run_ld_link_tests [list \ [list \ "Build pe-x86-64-1" \ - "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \ + "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code --no-rosegment" \ "" \ "" \ {pe-x86-64-1a.obj.bz2 pe-x86-64-1b.obj.bz2 pe-x86-64-1c.obj.bz2} \ @@ -36,7 +36,7 @@ run_ld_link_tests [list \ ] \ [list \ "Build pe-x86-64-2" \ - "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \ + "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code --no-rosegment" \ "" \ "" \ {pe-x86-64-2a.obj.bz2 pe-x86-64-2b.obj.bz2 pe-x86-64-2c.obj.bz2} \ @@ -45,7 +45,7 @@ run_ld_link_tests [list \ ] \ [list \ "Build pe-x86-64-3" \ - "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \ + "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code --no-rosegment" \ "" \ "" \ {pe-x86-64-3a.obj.bz2 pe-x86-64-3b.obj.bz2 pe-x86-64-3c.obj.bz2 \ @@ -55,7 +55,7 @@ run_ld_link_tests [list \ ] \ [list \ "Build pe-x86-64-4" \ - "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \ + "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code --no-rosegment" \ "" \ "" \ {pe-x86-64-4a.obj.bz2 pe-x86-64-4b.obj.bz2 pe-x86-64-4c.obj.bz2 \ @@ -65,7 +65,7 @@ run_ld_link_tests [list \ ] \ [list \ "Build pe-x86-64-5" \ - "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code" \ + "-m elf_x86_64 --entry=begin -z max-page-size=0x1000 -z separate-code --no-rosegment" \ "" \ "" \ {pe-x86-64-5.obj.bz2 } \ @@ -75,7 +75,7 @@ run_ld_link_tests [list \ ] \ [list \ "Build pe-x86-64-6" \ - "-m elf_x86_64 --entry=main -z max-page-size=0x1000 -z separate-code" \ + "-m elf_x86_64 --entry=main -z max-page-size=0x1000 -z separate-code --no-rosegment" \ "" \ "" \ {pe-x86-64-6.obj.bz2 } \ diff --git a/ld/testsuite/ld-x86-64/pr19609-4e.d b/ld/testsuite/ld-x86-64/pr19609-4e.d index ed6e6e0..39be216 100644 --- a/ld/testsuite/ld-x86-64/pr19609-4e.d +++ b/ld/testsuite/ld-x86-64/pr19609-4e.d @@ -1,6 +1,6 @@ #source: pr19609-4.s #as: --64 -mrelax-relocations=yes -#ld: -melf_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000 --no-relax -z max-page-size=0x1000 -z separate-code +#ld: -melf_x86_64 -Ttext=0x70000000 -Tdata=0xa0000000 --no-relax -z max-page-size=0x1000 -z separate-code --no-rosegment #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19609-6a.d b/ld/testsuite/ld-x86-64/pr19609-6a.d index 3bad8b5..ef76dd6 100644 --- a/ld/testsuite/ld-x86-64/pr19609-6a.d +++ b/ld/testsuite/ld-x86-64/pr19609-6a.d @@ -1,6 +1,6 @@ #source: pr19609-6.s #as: --64 -mrelax-relocations=yes -#ld: -melf_x86_64 --defsym foobar=0x80000000 -z max-page-size=0x1000 -z separate-code +#ld: -melf_x86_64 --defsym foobar=0x80000000 -z max-page-size=0x1000 -z separate-code --no-rosegment #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19609-6b.d b/ld/testsuite/ld-x86-64/pr19609-6b.d index 2723fb1..e6a2664 100644 --- a/ld/testsuite/ld-x86-64/pr19609-6b.d +++ b/ld/testsuite/ld-x86-64/pr19609-6b.d @@ -1,6 +1,6 @@ #source: pr19609-6.s #as: --64 -mrelax-relocations=yes -#ld: -melf_x86_64 --defsym foobar=0x80000000 --no-relax -z max-page-size=0x1000 -z separate-code +#ld: -melf_x86_64 --defsym foobar=0x80000000 --no-relax -z max-page-size=0x1000 -z separate-code --no-rosegment #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19609-7b.d b/ld/testsuite/ld-x86-64/pr19609-7b.d index 48d0b01..875d963 100644 --- a/ld/testsuite/ld-x86-64/pr19609-7b.d +++ b/ld/testsuite/ld-x86-64/pr19609-7b.d @@ -1,6 +1,6 @@ #source: pr19609-7.s #as: --64 -mrelax-relocations=yes -#ld: -melf_x86_64 -Ttext=0x80000000 --no-relax -z max-page-size=0x1000 -z separate-code +#ld: -melf_x86_64 -Ttext=0x80000000 --no-relax -z max-page-size=0x1000 -z separate-code --no-rosegment #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19609-7d.d b/ld/testsuite/ld-x86-64/pr19609-7d.d index 6e2882a..294b2c9 100644 --- a/ld/testsuite/ld-x86-64/pr19609-7d.d +++ b/ld/testsuite/ld-x86-64/pr19609-7d.d @@ -1,6 +1,6 @@ #source: pr19609-7.s #as: --x32 -mrelax-relocations=yes -#ld: -melf32_x86_64 -Ttext=0x80000000 --no-relax -z max-page-size=0x1000 -z separate-code +#ld: -melf32_x86_64 -Ttext=0x80000000 --no-relax -z max-page-size=0x1000 -z separate-code --no-rosegment #objdump: -dw .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/sframe-plt-1.d b/ld/testsuite/ld-x86-64/sframe-plt-1.d index 5e73461..ca82cf2 100644 --- a/ld/testsuite/ld-x86-64/sframe-plt-1.d +++ b/ld/testsuite/ld-x86-64/sframe-plt-1.d @@ -2,7 +2,7 @@ #source: sframe-foo.s #source: sframe-bar.s #objdump: --sframe=.sframe -#ld: -shared +#ld: -shared --no-rosegment #name: SFrame for plt0 and pltN .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/sframe-simple-1.d b/ld/testsuite/ld-x86-64/sframe-simple-1.d index 7f4db31..adc4b74 100644 --- a/ld/testsuite/ld-x86-64/sframe-simple-1.d +++ b/ld/testsuite/ld-x86-64/sframe-simple-1.d @@ -2,7 +2,7 @@ #source: sframe-foo.s #source: sframe-bar.s #objdump: --sframe=.sframe -#ld: -shared +#ld: -shared --no-rosegment #name: SFrame simple link .*: +file format .* |