1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

readelf: do not trucate section name with -W

PR:		246015
Reviewed by:	cem
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28461
This commit is contained in:
Ed Maste 2021-02-02 09:35:04 -05:00
parent e79b51e2b2
commit 847dfd2803

View File

@ -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 {