aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-04-16 13:17:35 +0100
committerNick Clifton <nickc@redhat.com>2024-04-16 13:17:35 +0100
commit21061c384c510e13b56c3991adf31ad85e80a824 (patch)
tree693cebbdbe0a408a83e98fda9a38f7265284996f /binutils/readelf.c
parent8c8de179c20bf5225a08599bee21a60fcde898fc (diff)
downloadgdb-21061c384c510e13b56c3991adf31ad85e80a824.zip
gdb-21061c384c510e13b56c3991adf31ad85e80a824.tar.gz
gdb-21061c384c510e13b56c3991adf31ad85e80a824.tar.bz2
Simplify readelf's RELR relocation display.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c20
1 files changed, 3 insertions, 17 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