aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
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
commitb9eb56c1fd7e43313494e4f50ed4f61351e49b16 (patch)
tree5be179632abda50b57494bb00b1316d429f1ec75 /binutils/readelf.c
parent1c08f2c880d39514a2917c24de11e5619bb81081 (diff)
downloadgdb-b9eb56c1fd7e43313494e4f50ed4f61351e49b16.zip
gdb-b9eb56c1fd7e43313494e4f50ed4f61351e49b16.tar.gz
gdb-b9eb56c1fd7e43313494e4f50ed4f61351e49b16.tar.bz2
* 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/readelf.c')
-rw-r--r--binutils/readelf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 2d356a6..c4bdc1d 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));