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]

readelf on elf64


Hi!

I find readelf -l and especially readelf -S output very unreadable when
handling 64bit ELF:

  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
  [ 0]                   NULL             0000000000000000  00000000
       0000000000000000  0000000000000000           0     0     0
  [ 1] .interp           PROGBITS         0000000120000190  00000190
       0000000000000010  0000000000000000   A       0     0     1
  [ 2] .note.ABI-tag     NOTE             00000001200001a0  000001a0
       0000000000000020  0000000000000000   A       0     0     16
  [ 3] .hash             HASH             00000001200001c0  000001c0
       00000000000001e0  0000000000000004   A       4     0     8
  [ 4] .dynsym           DYNSYM           00000001200003a0  000003a0
       00000000000001f8  0000000000000018   A      24     1     8
  [ 5] .gnu.liblist      SHT_LOOS+ffffff  0000000120000598  00000598
       0000000000000050  0000000000000014   A      24     0     4

What do you think about adding readelf option which would cause these two to
be a section (resp. segment) per line (especially now when 80 column
consoles are so rare)?

  [Nr] Name              Type            Addr              Off       Size      ES Flg Lk Inf Al
  [ 0]                   NULL            0000000000000000  00000000  00000000  00      0   0  0
  [ 1] .interp           PROGBITS        0000000120000190  00000190  00000010  00   A  0   0  1
  [ 2] .note.ABI-tag     NOTE            00000001200001a0  000001a0  00000020  00   A  0   0 16

I've yet to see sh_size > 4GB, similarly sh_entsize bigger than 256 are rare
too (and are printed as 2 digit number for ELF32).

	Jakub


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