readelf -S and long section name

H. J. Lu hjl@lucon.org
Tue Jul 29 14:38:00 GMT 2003


On Tue, Jul 29, 2003 at 04:23:28PM +0200, Jakub Jelinek wrote:
> On Tue, Jul 29, 2003 at 08:03:12AM +0100, Nick Clifton wrote:
> > Hi Guys,
> > 
> > > Alan Modra <amodra@bigpond.net.au> writes:
> > 
> > > On Mon, Jul 28, 2003 at 10:40:29AM -0700, H. J. Lu wrote:
> > >> The problem is one long section name, which is unusual in C++, will
> > >> make a very large number of columns and make it hard to see the rest
> > >> of output.
> > >
> > > Perhaps test for > n chars and if so, wrap after the section name,
> > > like
> > >
> > >   [11] .text             PROGBITS        00015a80 015a80 0f9e34 00  AX  0   0 16
> > >   [12] some_really_big_section_name_probably_from_c++_name_mangling
> > >                          PROGBITS        0010f8c0 10f8c0 00086a 00  AX  0   0 16
> > >
> > > With --wide, n probably should be increased too.
> > 
> > I rather like this idea.  HJ, Jakub - what do you think ?
> 
> 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.


H.J.



More information about the Binutils mailing list