This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: readelf -S and long section name


On Tue, Jul 29, 2003 at 10:51:59AM -0400, Jakub Jelinek wrote:
> 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
> 

According to the readelf info page:

`-W'
`--wide'
     Don't break output lines to fit into 80 columns. By default
     `readelf' breaks section header and segment listing lines for
     64-bit ELF files, so that they fit into 80 columns. This option
     causes `readelf' to print each section header resp. each segment
     one a single line, which is far more readable on terminals wider
     than 80 columns.

--wide fits the output into 80 columns by breaking it into multiple
lines. I like Alan's idea better, but only with --wide.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]