This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: readelf -S and long section name
On Tue, Jul 29, 2003 at 07:38:14AM -0700, H. J. Lu wrote:
> > Yeah, I like it too. It should IMHO be only done with --wide and n should be
> > increased such that the lines are shorter than some 128 chars or something
> > like that. It is already wider than 80 chars (that's why it is --wide)
> > and I think the next common number of display columns is 128.
>
> I agree it should only be with --wide. But I don't think there should
> be a limit. Otherwise, we don't have to make this change. The idea is
> to display the full section name. A 128 char limit defeats the purpose.
What I meant is, if section names are up to something like 55 characters,
it can be handled by moving the columns to the right, for longer section
names it could use split lines.
E.g. < 55 chars section names would be output like:
[11] short_section PROGBITS 000000000010a800 10a800 000000 00 AX 0 0 64
[12] some_overly_long_section_name_which_is_below_55_chars PROGBITS 000000000010a800 10a800 000000 00 AX 0 0 64
But when it is longer, it would be
[13] even_longer_section_name_which_really_doesnt_fit_into_any_reasonable_limits_I_can_imagine
PROGBITS 000000000010a800 10a800 000000 00 AX 0 0 64
Jakub