aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c12
2 files changed, 10 insertions, 7 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 2d2bc08..2b916a8 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-30 Nick Clifton <nickc@redhat.com>
+
+ * readelf.c (process_section_headers): Correct bug in previous
+ delta - display full section type in wide mode.
+
2012-05-28 Nick Clifton <nickc@redhat.com>
* readelf.c (print_symbol): Display multibyte characters in symbol
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 762a1a8..527edf2 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;