[RFC][PATCH 0/3] readelf and libbfd: Add Extended Numbering Support for ELF

Ian Lance Taylor iant@google.com
Fri Jan 15 15:53:00 GMT 2010


Daisuke HATAYAMA <d.hatayama@jp.fujitsu.com> writes:

> Extended Numbering is an ELF extension specified in order to cover a
> lack of field size for some fields of ELF header. Concretely, they are
> e_phnum, e_shnum and e_shstrndx, which have only 4 byte length in
> either 32- or 64-bit environments.

You mean that they currently have a 2 byte length.

I very sincerely hope that we never have an ELF file with more than
4,294,967,295 segments.

It's hard enough to understand having more than 65,535 segments
(sections, sure; segments?).

Ian



More information about the Binutils mailing list