Skip to content

Commit

Permalink
readelf: do not trucate section name with -W
Browse files Browse the repository at this point in the history
PR:		246015
Reviewed by:	cem
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28461

(cherry picked from commit 847dfd2)
  • Loading branch information
emaste committed Feb 18, 2021
1 parent 97232b0 commit 207f428
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions contrib/elftoolchain/readelf/readelf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2632,16 +2632,21 @@ dump_shdr(struct readelf *re)
" %6.6jx %6.6jx %2.2jx %2u %3u %2ju\n"
" %s\n", ST_CT);
else
printf(" [%2d] %-17.17s %-15.15s %8.8jx"
" %6.6jx %6.6jx %2.2jx %3s %2u %3u %2ju\n",
S_CT);
if (re->options & RE_WW)
printf(" [%2d] %-17s %-15.15s "
"%8.8jx %6.6jx %6.6jx %2.2jx %3s "
"%2u %3u %2ju\n", S_CT);
else
printf(" [%2d] %-17.17s %-15.15s "
"%8.8jx %6.6jx %6.6jx %2.2jx %3s "
"%2u %3u %2ju\n", S_CT);
} else if (re->options & RE_WW) {
if (re->options & RE_T)
printf(" [%2d] %s\n %-15.15s %16.16jx"
" %6.6jx %6.6jx %2.2jx %2u %3u %2ju\n"
" %s\n", ST_CT);
else
printf(" [%2d] %-17.17s %-15.15s %16.16jx"
printf(" [%2d] %-17s %-15.15s %16.16jx"
" %6.6jx %6.6jx %2.2jx %3s %2u %3u %2ju\n",
S_CT);
} else {
Expand Down

0 comments on commit 207f428

Please sign in to comment.