Subject: Re: m68k gas optimisation
To: None <tech-toolchain@netbsd.org, port-m68k@netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: port-m68k
Date: 02/06/2002 15:44:25
In article <20020206112748.A12828@ieee.org>
g.mcgarry@ieee.org writes:

> #define _RELOC(var, ar)         \
>         lea     var,ar;         \
>         addl    %a5,ar
> #define ASRELOC(var, ar)        _RELOC(_ASM_LABEL(var), ar)

#define _RELOC(var, ar)		\
	movel	#var,ar;	\
	addl	%a5,ar

should work around the problem.

Or,

#define _RELOC(var, ar)	\
	lea	%pc@(var),ar

but, hmm, old gas cores by this code....
-- 
ITOH Yasufumi