diff options
author | Fangrui Song <i@maskray.me> | 2024-04-16 13:17:35 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2024-04-16 13:17:35 +0100 |
commit | 21061c384c510e13b56c3991adf31ad85e80a824 (patch) | |
tree | 693cebbdbe0a408a83e98fda9a38f7265284996f /binutils/readelf.c | |
parent | 8c8de179c20bf5225a08599bee21a60fcde898fc (diff) | |
download | gdb-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.c | 20 |
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 |