summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-10-07 12:03:18 +0000
committerNick Clifton <nickc@redhat.com>2008-10-07 12:03:18 +0000
commit814be7125949a44ddabc18c2e42d756ffd7ac8e5 (patch)
tree92e92894052116804863c80021267bf76fd9a240 /binutils
parent78c0c2ea2b5556a56ef5ea914e5ecc2cb07fd814 (diff)
downloadbinutils-redhat-814be7125949a44ddabc18c2e42d756ffd7ac8e5.tar.gz
* readelf.c (process_section_headers): Do not cut the section names and
types if running with --wide. * ld-ia64/tlsbin.rd: Update expected output now that --wide does not truncate section names. * ld-ia64/tlspic.rd: Likewise.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 2733543eb8..aa8d4f477f 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * readelf.c (process_section_headers): Do not cut the section names and
+ types if running with --wide.
+
2008-10-06 Tom Tromey <tromey@redhat.com>
* dwarf.c (display_debug_frames): Change text for uniformity.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 2d356a6962..c4bdc1dfd8 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4375,7 +4375,8 @@ process_section_headers (FILE *file)
get_section_type_name (section->sh_type));
}
else
- printf (" [%2u] %-17.17s %-15.15s ",
+ printf ((do_wide ? " [%2u] %-17s %-15s "
+ : " [%2u] %-17.17s %-15.15s "),
i,
SECTION_NAME (section),
get_section_type_name (section->sh_type));