[PATCH] program header instability
Nathan Sidwell
nathan@codesourcery.com
Thu Dec 28 22:39:00 GMT 2006
Alan Modra wrote:
> I'm not so keen on never reducing the size. The thing is that we have
> two ways we set the size. The first is the guess we make in
> get_program_header_size (triggerred by SIZEOF_HEADERS in a link
> script), the second is the value calculated from a previous iteration
> of the segment layout code. get_program_header_size can make quite a
> poor guess. So I reckon we ought to allow shrinkage on the first
> iteration (or maybe first few iterations) of the gld*_map_segments
> loop. Would you mind making that change?
This one seems to to do the trick. Tested on i686-pc-linux-gnu, ok?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: phdr-2.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20061228/0bfdfe53/attachment.ksh>
More information about the Binutils
mailing list