This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFC][PATCH 0/3] readelf and libbfd: Add Extended Numbering Support for ELF
On Fri, Jan 15, 2010 at 07:53:26AM -0800, Ian Lance Taylor wrote:
> 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?).
It's mainly, as he wrote later, for core files. I'm surprised you
haven't complained about this limitation yourself :-) If your thread
stacks were allocated with guard pages, a core dump with over 64k threads
should have over 64k segments.
--
Daniel Jacobowitz
CodeSourcery