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: Proposal for STT_GNU_IFUNC and R_*_IRELATIVE


On Mon, Jun 1, 2009 at 1:07 PM, Ian Lance Taylor
<ianlancetaylor@gmail.com> wrote:
>
> "H.J. Lu" <hjl.tools@gmail.com> writes:
>
>> R_*_IRELATIVE
>>
>> ? ? ? This relocation is similar to R_*_RELATIVE except that the
>> ? ? ? value used in this relocation is the program address returned
>> ? ? ? by the function, which takes no arguments, at the address of
>> ? ? ? the result of the corresponding R_*_RELATIVE relocation.
>>
>> ? ? ? The purpose of this relocation to avoid name lookup for locally
>> ? ? ? defined STT_GNU_IFUNC symbols at load-time.
>
> How is the "corresponding R_*_RELATIVE relocation" determined?

I added "as specified in the processor-specific ABI":

R_*_IRELATIVE

      This relocation is similar to R_*_RELATIVE except that the
      value used in this relocation is the program address returned
      by the function, which takes no arguments, at the address of
      the result of the corresponding R_*_RELATIVE relocation as
      specified in the processor-specific ABI.


-- 
H.J.


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