m68k reloc types

Richard Henderson rth@redhat.com
Tue Aug 17 09:09:00 GMT 2004


On Tue, Aug 17, 2004 at 10:43:36AM +0200, Andreas Schwab wrote:
> Richard Henderson <rth@redhat.com> writes:
> > where it could be
> >
> > 	add.l %d0, x@GOTOFF(%a5)
> 
> [ ITYM x@GOTOFF(%pc) ]

No, I do not.  PC-relative addresses may *not* be used as
destinations on m68k.

> x@GOTOFF(%pc) resolves to the address of the GOT entry of x.

No it doesn't.  It resolves to the offset from _GLOBAL_OFFSET_TABLE_
of X directly, not the address of X.


r~



More information about the Binutils mailing list