aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-05-30 14:33:12 +0000
committerNick Clifton <nickc@redhat.com>2012-05-30 14:33:12 +0000
commitea52a08872bbc62398e32df32d32d0d7366bf9c8 (patch)
treeadb5b553337dedfe51a90ae88fd7f717d1845ee3 /binutils
parentbb08bdbd817cc9ae41f92dd039c363b75340cc61 (diff)
downloadgdb-ea52a08872bbc62398e32df32d32d0d7366bf9c8.zip
gdb-ea52a08872bbc62398e32df32d32d0d7366bf9c8.tar.gz
gdb-ea52a08872bbc62398e32df32d32d0d7366bf9c8.tar.bz2
* 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')
-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;