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: Relocation data value adjust


2010/5/21 Andreas Schwab <schwab@redhat.com>:
> daniel tian <daniel.xntian@gmail.com> writes:
>
>> I digged the write.c, and still being puzzled. The difficulty I met is
>> how I could distinguish those two labels ?being in funpointer (data
>> section) from like "JMP @a" (in .text section, because in jmp section,
>> there will be a fixup, and it will be resolved in md_apply_fix, the
>> "a" address value will be right shifted two bit in this function.).
>> and I noticed "a, c" ?reloc_type is BFD_RELOC_32 (TC_CONS_FIX_NEW is
>> not defined in my target.), So I wonder whether I chould identitify
>> "a,c" with BFD_RELOC_32.
>
> Qualify the expression by using something like a@fptr and attach a
> different relocation type to it. ?See the powerpc port for an example.
>
> Andreas.

hi, Andreas:
  I checked the as-internal document, there is no something like fptr
stuff, or this is a self defined thing to handle some special
relocation type, right?
Because I don't know the powerpc assemble language, do you mind to
give me a little more detail about @fptr thing?

Thanks very much.


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