linker bug 10515
H.J. Lu
hjl.tools@gmail.com
Wed Oct 7 22:50:00 GMT 2009
On Tue, Oct 6, 2009 at 3:29 AM, Alan Modra <amodra@bigpond.net.au> wrote:
> 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.
>
FYI, Linux ia64 kernel does use it:
http://www.sourceware.org/bugzilla/show_bug.cgi?id=10744
Can we allow FILEHDRS/PHDRS if the previous segment has the same
headers?
Thanks.
--
H.J.
More information about the Binutils
mailing list