This is the mail archive of the binutils@sourceware.org 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: More than 65536 sections in an ELF file


"H.J. Lu" <hjl.tools@gmail.com> writes:

> Icc has generated files with more than 65536 sections. I am not aware of any
> problem. Can you open a bug report with a script to generate a file with more
> than 65536 sections and show the problem with readelf?

There is no visible problem with readelf, because readelf also
adjusts.  Actually, you can see what happens with readelf -S; watch
the section indices:

  [65277] section_65274     PROGBITS         0000000000000000  0003fc24
       0000000000000004  0000000000000000  WA       0     0     4
  [65278] section_65275     PROGBITS         0000000000000000  0003fc28
       0000000000000004  0000000000000000  WA       0     0     4
  [65279] section_65276     PROGBITS         0000000000000000  0003fc2c
       0000000000000004  0000000000000000  WA       0     0     4
  [65536] section_65277     PROGBITS         0000000000000000  0003fc30
       0000000000000004  0000000000000000  WA       0     0     4
  [65537] section_65278     PROGBITS         0000000000000000  0003fc34
       0000000000000004  0000000000000000  WA       0     0     4
  [65538] section_65279     PROGBITS         0000000000000000  0003fc38
       0000000000000004  0000000000000000  WA       0     0     4
  [65539] section_65280     PROGBITS         0000000000000000  0003fc3c
       0000000000000004  0000000000000000  WA       0     0     4

Where are sections 65280 to 65535?

I opened bug 5900 for this.

Ian


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