summaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-05-30 14:33:11 +0000
committerNick Clifton <nickc@redhat.com>2012-05-30 14:33:11 +0000
commit7a3deb19b3c9686de9139363e98eb43f49dd29e2 (patch)
tree16a35b59f3fdc268dd19888fa51f4bda172072f0 /binutils/readelf.c
parent5e49132f7d1eac96331b6d1398c9b7e308f96cc1 (diff)
downloadbinutils-redhat-7a3deb19b3c9686de9139363e98eb43f49dd29e2.tar.gz
* readelf.c (process_section_headers): Correct bug in previous
delta - display full section type in wide mode. * ld-tic6x/shlib-1b.rd: Revert previous delta. * ld-tic6x/shlib-1rb.rd: Likewise. * ld-tic6x/shlib-1.rd: Likewise. * ld-tic6x/shlib-1r.rd: Likewise. * ld-tic6x/shlib-app-1b.rd: Likewise. * ld-tic6x/shlib-app-1rb.rd: Likewise. * ld-tic6x/shlib-app-1.rd: Likewise. * ld-tic6x/shlib-app-1r.rd: Likewise. * ld-tic6x/shlib-noindex.rd: Likewise. * ld-tic6x/static-app-1b.rd: Likewise. * ld-tic6x/static-app-1rb.rd: Likewise. * ld-tic6x/static-app-1.rd: Likewise. * ld-tic6x/static-app-1r.rd: Likewise.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 762a1a8700..527edf2a6e 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4738,18 +4738,16 @@ process_section_headers (FILE * file)
if (do_section_details)
{
print_symbol (INT_MAX, SECTION_NAME (section));
- putchar ('\n');
- if (is_32bit_elf || do_wide)
- printf (" %-15.15s ",
- get_section_type_name (section->sh_type));
+ printf ("\n ");
}
else
{
print_symbol (-17, SECTION_NAME (section));
- printf (" %-15.15s ",
- get_section_type_name (section->sh_type));
}
-
+
+ printf (do_wide ? " %-15s " : " %-15.15s ",
+ get_section_type_name (section->sh_type));
+
if (is_32bit_elf)
{
const char * link_too_big = NULL;