This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] [gold] Simplify relocation strategy logic


>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]