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


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.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."


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