gold regression vs BFD ld: __ehdr_start
Cary Coutant
ccoutant@google.com
Tue Apr 1 22:59:00 GMT 2014
> In ld/testsuite, the ehdr_start_missing.t script attempts to construct
> a situation where the first load segment cannot contain the headers by
> setting the text section start address to 0x10000000. That doesn't
> work! (At least, not in gold.) Gold will happily place the headers at
> 0x10000000, and place the text section immediately after that. I'm not
> sure if this is a bug or a feature. I think this is a known difference
> between the two linkers that has been discussed before.
Oops, not quite right. When using -Ttext=0x10000000, gold puts the
headers at 0x10000000 and starts the text immediately after. But with
a SECTIONS clause, gold puts the .text section at 0x10000000, and if
it can, it will create a load segment for the headers at 0x0ffff000.
-cary
More information about the Binutils
mailing list