This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: m68k reloc types
>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