This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Relocation data value adjust
- From: Andreas Schwab <schwab at redhat dot com>
- To: daniel tian <daniel dot xntian at gmail dot com>
- Cc: binutils <binutils at sourceware dot org>, peng dot zheng at mavrixtech dot com
- Date: Fri, 21 May 2010 13:13:39 +0200
- Subject: Re: Relocation data value adjust
- References: <AANLkTikf4rjLV9Jk45iY09Umpt0fwA1ABHfGLuEDt8LP@mail.gmail.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.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."