[RFC] [gold] Simplify relocation strategy logic
Cary Coutant
ccoutant@google.com
Mon Mar 14 18:58:00 GMT 2011
>> Er, that was "right" to the last bit. R_X86_64_GOTPLT64 is a GOT offset,
>> isn't it? That's GP-relative rather than absolute.
>
> Right, as are GOT32 and GOT64. For the purposes of
> relocation_strategy, GP-relative is as good as pc-relative (no dynamic
> relocation required). Now I'm wondering why my patch works at all -- I
> think we'll need some additional test cases.
I have answer to that -- none of the test cases in our testsuite use
GOTPLT64, GOT32, or GOT64 (I checked both opt and debug).
-cary
More information about the Binutils
mailing list