This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: linker bug 10515
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