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 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~


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