m68k reloc types
Peter Barada
peter@the-baradas.com
Tue Aug 17 12:12:00 GMT 2004
>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)
>
This is true for 68k where offsets can be 32 bit, but its not
true for ColdFire where offsets can only be 16 bits.
--
Peter Barada
peter@the-baradas.com
More information about the Binutils
mailing list