diff options
-rw-r--r-- | binutils/readelf.c | 20 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/dt-relr-2b.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/dt-relr-2c.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/dt-relr-2d.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/dt-relr-2e.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/dt-relr-2i.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/dt-relr-1a.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-i386/dt-relr-1b.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/abs-pie-relr.r | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/abs-shared-relr.r | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/dt-relr-1a-x32.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/dt-relr-1a.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/dt-relr-1b-x32.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-x86-64/dt-relr-1b.d | 4 |
14 files changed, 29 insertions, 43 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index fcf95ee..e0cf718 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -1665,20 +1665,10 @@ dump_relr_relocations (Filedata * filedata, be used later on for some other purpose. */ qsort (symtab, nsyms, sizeof (Elf_Internal_Sym), symcmp); - if (do_wide) - { - if (relr_entsize == 4) - printf (_("Index: Entry: Address Symbolic Address Notes\n")); - else - printf (_("Index: Entry: Address relocated Symbolic Address Notes\n")); - } + if (relr_entsize == 4) + printf (_ ("Index: Entry Address Symbolic Address\n")); else - { - if (relr_entsize == 4) - printf (_("Index: Entry: Address Symbolic Address\n")); - else - printf (_("Index: Entry: Address relocated Symbolic Address\n")); - } + printf (_ ("Index: Entry Address Symbolic Address\n")); for (i = 0; i < nentries; i++) { @@ -1698,8 +1688,6 @@ dump_relr_relocations (Filedata * filedata, { where = entry; print_relr_addr_and_sym (symtab, nsyms, strtab, strtablen, where); - if (do_wide) - printf (_(" (new starting address)")); printf ("\n"); where += relr_entsize; } @@ -1722,8 +1710,6 @@ dump_relr_relocations (Filedata * filedata, if (first) { print_relr_addr_and_sym (symtab, nsyms, strtab, strtablen, addr); - if (do_wide) - printf (_(" (start of bitmap)")); first = false; } else diff --git a/ld/testsuite/ld-elf/dt-relr-2b.d b/ld/testsuite/ld-elf/dt-relr-2b.d index 48a3eb7..f9c6880 100644 --- a/ld/testsuite/ld-elf/dt-relr-2b.d +++ b/ld/testsuite/ld-elf/dt-relr-2b.d @@ -14,8 +14,8 @@ Relocation section '\.rel(a|)\.dyn' at offset 0x[0-9a-f]+ contains 1 entry: #... Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: #... -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\) +0000: +[0-9a-f]+ [0-9a-f]+ +data +0001: +[0-9a-f]+ [0-9a-f]+ +data \+ 0x[0-9a-f]+ +[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 7f6383b..d9e3698 100644 --- a/ld/testsuite/ld-elf/dt-relr-2c.d +++ b/ld/testsuite/ld-elf/dt-relr-2c.d @@ -14,7 +14,7 @@ Relocation section '\.rel(a|)\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: #... Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: #... -0000: +[0-9a-f]+ [0-9a-f]+ +.* \(new starting address\) -0001: +[0-9a-f]+ [0-9a-f]+ +.* \(start of bitmap\) +0000: +[0-9a-f]+ [0-9a-f]+ +.* +0001: +[0-9a-f]+ [0-9a-f]+ +.* +[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 f1184fe..69863bd 100644 --- a/ld/testsuite/ld-elf/dt-relr-2d.d +++ b/ld/testsuite/ld-elf/dt-relr-2d.d @@ -14,8 +14,8 @@ Relocation section '\.rel(a|)\.dyn' at offset 0x[0-9a-f]+ contains 1 entry: #... Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: #... -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\) +0000: +[0-9a-f]+ [0-9a-f]+ +data +0001: +[0-9a-f]+ [0-9a-f]+ +data \+ 0x[0-9a-f]+ +[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 eddb5e3..e047c0d 100644 --- a/ld/testsuite/ld-elf/dt-relr-2e.d +++ b/ld/testsuite/ld-elf/dt-relr-2e.d @@ -14,8 +14,8 @@ Relocation section '\.rel(a|)\.data' at offset 0x[0-9a-f]+ contains 1 entry: #... Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: #... -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\) +0000: +[0-9a-f]+ [0-9a-f]+ +data +0001: +[0-9a-f]+ [0-9a-f]+ +data \+ 0x[0-9a-f]+ +[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 55e8c25..a328ccb 100644 --- a/ld/testsuite/ld-elf/dt-relr-2i.d +++ b/ld/testsuite/ld-elf/dt-relr-2i.d @@ -14,8 +14,8 @@ Relocation section '\.rel(a|)\.dyn' at offset 0x[0-9a-f]+ contains 1 entry: #... Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries: #... -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\) +0000: +[0-9a-f]+ [0-9a-f]+ +data +0001: +[0-9a-f]+ [0-9a-f]+ +data \+ 0x[0-9a-f]+ +[0-9a-f]+ +data \+ 0x[0-9a-f]+ +[0-9a-f]+ +data \+ 0x[0-9a-f]+ #pass diff --git a/ld/testsuite/ld-i386/dt-relr-1a.d b/ld/testsuite/ld-i386/dt-relr-1a.d index 3944911..89cc636 100644 --- a/ld/testsuite/ld-i386/dt-relr-1a.d +++ b/ld/testsuite/ld-i386/dt-relr-1a.d @@ -15,8 +15,8 @@ Relocation section '\.rel\.plt' at offset 0x[0-9a-f]+ contains 1 entry: Relocation section '.relr.dyn' at offset 0x[a-f0-9]+ contains 2 entries: #... -0000: +[0-9a-f]+ [0-9a-f]+ +.* \(new starting address\) -0001: +[0-9a-f]+ [0-9a-f]+ +.* \(start of bitmap\) +0000: +[0-9a-f]+ [0-9a-f]+ +.* +0001: +[0-9a-f]+ [0-9a-f]+ +.* +[0-9a-f]+ +.* #... Symbol table '.symtab' contains [0-9]+ entries: diff --git a/ld/testsuite/ld-i386/dt-relr-1b.d b/ld/testsuite/ld-i386/dt-relr-1b.d index 947d835..6e7f3ca 100644 --- a/ld/testsuite/ld-i386/dt-relr-1b.d +++ b/ld/testsuite/ld-i386/dt-relr-1b.d @@ -18,8 +18,8 @@ Relocation section '\.rel\.plt' at offset 0x[0-9a-f]+ contains 1 entry: Relocation section '.relr.dyn' at offset 0x[a-f0-9]+ contains 2 entries: #... -0000: +[0-9a-f]+ [0-9a-f]+ +.* \(new starting address\) -0001: +[0-9a-f]+ [0-9a-f]+ +.* \(start of bitmap\) +0000: +[0-9a-f]+ [0-9a-f]+ +.* +0001: +[0-9a-f]+ [0-9a-f]+ +.* +[0-9a-f]+ +.* #... Symbol table '.symtab' contains [0-9]+ entries: diff --git a/ld/testsuite/ld-powerpc/abs-pie-relr.r b/ld/testsuite/ld-powerpc/abs-pie-relr.r index 049cd7a..e84b0af 100644 --- a/ld/testsuite/ld-powerpc/abs-pie-relr.r +++ b/ld/testsuite/ld-powerpc/abs-pie-relr.r @@ -4,5 +4,5 @@ #readelf: -rW Relocation section '\.relr\.dyn' at offset .* contains 1 entry: -Index: Entry: +Address relocated Symbolic Address +Notes -0000: +[0-9a-f]+ [0-9a-f]+ +x \(new starting address\) +Index: Entry Address Symbolic Address +0000: +[0-9a-f]+ [0-9a-f]+ +x diff --git a/ld/testsuite/ld-powerpc/abs-shared-relr.r b/ld/testsuite/ld-powerpc/abs-shared-relr.r index 3ce70f7..ce1a7ee 100644 --- a/ld/testsuite/ld-powerpc/abs-shared-relr.r +++ b/ld/testsuite/ld-powerpc/abs-shared-relr.r @@ -13,6 +13,6 @@ Relocation section '\.rela\.dyn' at offset .* contains 6 entries: 0+10450 0+400000026 R_PPC64_ADDR64 123456789abcdef0 c \+ 0 Relocation section '\.relr\.dyn' at offset .* contains 1 entry: -Index: Entry: +Address relocated Symbolic Address +Notes -0000: +[0-9a-f]+ [0-9a-f]+ +x \(new starting address\) +Index: Entry Address Symbolic Address +0000: +[0-9a-f]+ [0-9a-f]+ +x diff --git a/ld/testsuite/ld-x86-64/dt-relr-1a-x32.d b/ld/testsuite/ld-x86-64/dt-relr-1a-x32.d index 78ffda9..863e97a 100644 --- a/ld/testsuite/ld-x86-64/dt-relr-1a-x32.d +++ b/ld/testsuite/ld-x86-64/dt-relr-1a-x32.d @@ -15,8 +15,8 @@ Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entry: Relocation section '.relr.dyn' at offset 0x[a-f0-9]+ contains 2 entries: #... -0000: +[0-9a-f]+ [0-9a-f]+ +.* \(new starting address\) -0001: +[0-9a-f]+ [0-9a-f]+ +.* \(start of bitmap\) +0000: +[0-9a-f]+ [0-9a-f]+ +.* +0001: +[0-9a-f]+ [0-9a-f]+ +.* +[0-9a-f]+ +.* #... Symbol table '.symtab' contains [0-9]+ entries: diff --git a/ld/testsuite/ld-x86-64/dt-relr-1a.d b/ld/testsuite/ld-x86-64/dt-relr-1a.d index 8e09925..30af875 100644 --- a/ld/testsuite/ld-x86-64/dt-relr-1a.d +++ b/ld/testsuite/ld-x86-64/dt-relr-1a.d @@ -15,8 +15,8 @@ Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entry: Relocation section '.relr.dyn' at offset 0x[a-f0-9]+ contains 2 entries: #... -0000: +[0-9a-f]+ [0-9a-f]+ +.* \(new starting address\) -0001: +[0-9a-f]+ [0-9a-f]+ +.* \(start of bitmap\) +0000: +[0-9a-f]+ [0-9a-f]+ +.* +0001: +[0-9a-f]+ [0-9a-f]+ +.* +[0-9a-f]+ +.* #... Symbol table '.symtab' contains [0-9]+ entries: diff --git a/ld/testsuite/ld-x86-64/dt-relr-1b-x32.d b/ld/testsuite/ld-x86-64/dt-relr-1b-x32.d index c2e3a3a..3c37bcd 100644 --- a/ld/testsuite/ld-x86-64/dt-relr-1b-x32.d +++ b/ld/testsuite/ld-x86-64/dt-relr-1b-x32.d @@ -18,8 +18,8 @@ Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entry: Relocation section '.relr.dyn' at offset 0x[a-f0-9]+ contains 2 entries: #... -0000: +[0-9a-f]+ [0-9a-f]+ +.* \(new starting address\) -0001: +[0-9a-f]+ [0-9a-f]+ +.* \(start of bitmap\) +0000: +[0-9a-f]+ [0-9a-f]+ +.* +0001: +[0-9a-f]+ [0-9a-f]+ +.* +[0-9a-f]+ +.* #... Symbol table '.symtab' contains [0-9]+ entries: diff --git a/ld/testsuite/ld-x86-64/dt-relr-1b.d b/ld/testsuite/ld-x86-64/dt-relr-1b.d index 03e0202..bc07cf8 100644 --- a/ld/testsuite/ld-x86-64/dt-relr-1b.d +++ b/ld/testsuite/ld-x86-64/dt-relr-1b.d @@ -18,8 +18,8 @@ Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entry: Relocation section '.relr.dyn' at offset 0x[a-f0-9]+ contains 2 entries: #... -0000: +[0-9a-f]+ [0-9a-f]+ +.* \(new starting address\) -0001: +[0-9a-f]+ [0-9a-f]+ +.* \(start of bitmap\) +0000: +[0-9a-f]+ [0-9a-f]+ +.* +0001: +[0-9a-f]+ [0-9a-f]+ +.* +[0-9a-f]+ +.* #... Symbol table '.symtab' contains [0-9]+ entries: |