diff options
author | Francois H. Theron <francois.theron@netronome.com> | 2018-07-11 18:14:16 +0200 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-07-12 15:43:29 +0930 |
commit | 55cc53e98b86d9be559073c4f062735e2099d1fb (patch) | |
tree | 7aa4a01ee4a579177ea5c36f8a22b7776d650f4a /binutils | |
parent | 639eff935742fda1f8d5fd629dc877eda9975c96 (diff) | |
download | fsf-binutils-gdb-55cc53e98b86d9be559073c4f062735e2099d1fb.zip fsf-binutils-gdb-55cc53e98b86d9be559073c4f062735e2099d1fb.tar.gz fsf-binutils-gdb-55cc53e98b86d9be559073c4f062735e2099d1fb.tar.bz2 |
readelf: Don't print section type twice for --section-details
* readelf.c (process_section_headers): Don't print section type
twice for --section-details.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/readelf.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index a2c71eb..99fad00 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2018-07-12 Francois H. Theron <francois.theron@netronome.com> + + * readelf.c (process_section_headers): Don't print section type + twice for --section-details. + 2018-07-10 Alan Modra <amodra@gmail.com> * testsuite/lib/binutils-common.exp (supports_gnu_unique): Return diff --git a/binutils/readelf.c b/binutils/readelf.c index 88fb356..7716381 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -6508,8 +6508,7 @@ process_section_headers (Filedata * filedata) } else if (do_section_details) { - printf (" %-15.15s ", - get_section_type_name (filedata, section->sh_type)); + putchar (' '); print_vma (section->sh_addr, LONG_HEX); if ((long) section->sh_offset == section->sh_offset) printf (" %16.16lx", (unsigned long) section->sh_offset); |