This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS gas/ld -xgot handling is broken for at least mips*-linux
Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> writes:
> Richard Sandiford wrote:
>> I don't see why either of Thiemo's alternatives are necessary.
>> There's no inherent reason why -xgot and multigot should be incompatible.
>
> The multigot support tries to arrange the GOT contents (e.g. global
> symbols) in a different way than plain xgot would do. For a pure xgot
> link this looks like a unnecessary complication. For mixing xgot and
> small GOT objects, well, this looks bit dubious to be.
Of course. Multigot is unnecessary if the code could have coped with
a single GOT. It's still not wrong to use several GOTs anyway.
>> The fact that they don't work together in Thiemo's testcase suggests that
>> he's stumbled across a common-or-garden bug.
>
> It's surely more than one bug I found here.
Then let's isolate them and fix them ;) Surely that's better than trying
to make the multigot code even more complicated (by detecting when a big
GOT would actually have been OK)?
Richard