linker bug 10515

Alan Modra amodra@bigpond.net.au
Tue Oct 6 10:29:00 GMT 2009


On Tue, Oct 06, 2009 at 10:33:53AM +0100, Nathan Sidwell wrote:
> Alan Modra wrote:
>
>> No.  I think you should just check PT_LOAD headers.  That would allow
>> various non-load headers to appear first if anyone so desires
>> (eg. PT_PHDR, PT_INTERP).  It would also simplify the documentation
>> and error message.
>
> do you mean that only the first PT_LOAD segment can have headers, and no  
> subsequent PT_LOAD headers?  Please clarify

Yes.  You would need overlapping PT_LOAD segments if more than one
could have PHDRS.  I suppose that would be possible with overlays but
I doubt the existing code supports it.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list