This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: m68k reloc types


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]