diff options
author | Nick Clifton <nickc@redhat.com> | 2024-04-11 16:57:18 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2024-04-11 16:57:18 +0100 |
commit | fcf8f3237cbaa0f97e57a161d7354cdb89a1ffa4 (patch) | |
tree | 9023c556f44b1b7eb2578de0f1ac5f8386bebd73 /ld/testsuite/ld-elf | |
parent | 8e8d0b63ff15896cc2c228c01f18dfcf2a4a9305 (diff) | |
download | fsf-binutils-gdb-fcf8f3237cbaa0f97e57a161d7354cdb89a1ffa4.zip fsf-binutils-gdb-fcf8f3237cbaa0f97e57a161d7354cdb89a1ffa4.tar.gz fsf-binutils-gdb-fcf8f3237cbaa0f97e57a161d7354cdb89a1ffa4.tar.bz2 |
Improve readelf's display of RELR relocs.
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r-- | ld/testsuite/ld-elf/dt-relr-2b.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/dt-relr-2c.d | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/dt-relr-2d.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/dt-relr-2e.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/dt-relr-2i.d | 6 |
5 files changed, 24 insertions, 5 deletions
diff --git a/ld/testsuite/ld-elf/dt-relr-2b.d b/ld/testsuite/ld-elf/dt-relr-2b.d index b139156..48a3eb7 100644 --- a/ld/testsuite/ld-elf/dt-relr-2b.d +++ b/ld/testsuite/ld-elf/dt-relr-2b.d @@ -13,5 +13,9 @@ Relocation section '\.rel(a|)\.dyn' at offset 0x[0-9a-f]+ contains 1 entry: [0-9a-f]+ +[0-9a-f]+ +R_.*_(RELATIVE|UADDR.*) .* #... Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: - 4 offsets +#... +0000: +[0-9a-f]+ [0-9a-f]+ +data \(new starting address\) +0001: +[0-9a-f]+ [0-9a-f]+ +data \+ 0x[0-9a-f]+ \(start of bitmap\) + +[0-9a-f]+ +data \+ 0x[0-9a-f]+ + +[0-9a-f]+ +data \+ 0x[0-9a-f]+ #pass diff --git a/ld/testsuite/ld-elf/dt-relr-2c.d b/ld/testsuite/ld-elf/dt-relr-2c.d index c285e87..7f6383b 100644 --- a/ld/testsuite/ld-elf/dt-relr-2c.d +++ b/ld/testsuite/ld-elf/dt-relr-2c.d @@ -13,5 +13,8 @@ Relocation section '\.rel(a|)\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: [0-9a-f]+ +[0-9a-f]+ +R_.*_(RELATIVE|UADDR.*) .* #... Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: - 3 offsets +#... +0000: +[0-9a-f]+ [0-9a-f]+ +.* \(new starting address\) +0001: +[0-9a-f]+ [0-9a-f]+ +.* \(start of bitmap\) + +[0-9a-f]+ +.* #pass diff --git a/ld/testsuite/ld-elf/dt-relr-2d.d b/ld/testsuite/ld-elf/dt-relr-2d.d index 7fd3046..f1184fe 100644 --- a/ld/testsuite/ld-elf/dt-relr-2d.d +++ b/ld/testsuite/ld-elf/dt-relr-2d.d @@ -13,5 +13,9 @@ Relocation section '\.rel(a|)\.dyn' at offset 0x[0-9a-f]+ contains 1 entry: [0-9a-f]+ +[0-9a-f]+ +R_.*_(RELATIVE|UADDR.*) .* #... Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: - 4 offsets +#... +0000: +[0-9a-f]+ [0-9a-f]+ +data \(new starting address\) +0001: +[0-9a-f]+ [0-9a-f]+ +data \+ 0x[0-9a-f]+ \(start of bitmap\) + +[0-9a-f]+ +data \+ 0x[0-9a-f]+ + +[0-9a-f]+ +data \+ 0x[0-9a-f]+ #pass diff --git a/ld/testsuite/ld-elf/dt-relr-2e.d b/ld/testsuite/ld-elf/dt-relr-2e.d index cdff846..eddb5e3 100644 --- a/ld/testsuite/ld-elf/dt-relr-2e.d +++ b/ld/testsuite/ld-elf/dt-relr-2e.d @@ -13,5 +13,9 @@ Relocation section '\.rel(a|)\.data' at offset 0x[0-9a-f]+ contains 1 entry: [0-9a-f]+ +[0-9a-f]+ +R_.*_(RELATIVE|UADDR.*) .* #... Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: - 4 offsets +#... +0000: +[0-9a-f]+ [0-9a-f]+ +data \(new starting address\) +0001: +[0-9a-f]+ [0-9a-f]+ +data \+ 0x[0-9a-f]+ \(start of bitmap\) + +[0-9a-f]+ +data \+ 0x[0-9a-f]+ + +[0-9a-f]+ +data \+ 0x[0-9a-f]+ #pass diff --git a/ld/testsuite/ld-elf/dt-relr-2i.d b/ld/testsuite/ld-elf/dt-relr-2i.d index ed0ef9c..55e8c25 100644 --- a/ld/testsuite/ld-elf/dt-relr-2i.d +++ b/ld/testsuite/ld-elf/dt-relr-2i.d @@ -13,5 +13,9 @@ Relocation section '\.rel(a|)\.dyn' at offset 0x[0-9a-f]+ contains 1 entry: [0-9a-f]+ +[0-9a-f]+ +R_.*_(RELATIVE|UADDR.*) .* #... Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: - 4 offsets +#... +0000: +[0-9a-f]+ [0-9a-f]+ +data \(new starting address\) +0001: +[0-9a-f]+ [0-9a-f]+ +data \+ 0x[0-9a-f]+ \(start of bitmap\) + +[0-9a-f]+ +data \+ 0x[0-9a-f]+ + +[0-9a-f]+ +data \+ 0x[0-9a-f]+ #pass |