m68k reloc types
Richard Henderson
rth@redhat.com
Tue Aug 17 07:03:00 GMT 2004
On Mon, Aug 16, 2004 at 05:20:03PM +0200, Andreas Schwab wrote:
> > What should we call R_386_GOTOFF if we wanted to implement it for the m68k
> > linker?
>
> There is no corresponding relocation defined for m68k, because it is not
> needed.
Except that m68k does not implement pc-relative writes.
static int x;
void foo(int y)
{
x += y;
}
Currently generates
move.l x@GOT(%a5),%a0
add.l %d0,(%a0)
where it could be
add.l %d0, x@GOTOFF(%a5)
r~
More information about the Binutils
mailing list