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

Daniel Jacobowitz dan@codesourcery.com
Sun Jan 17 14:17:00 GMT 2010


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



More information about the Binutils mailing list