Subject: Re: Postgresql-server compile failes on mac68k
To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
From: Allen Briggs <briggs@wasabisystems.com>
List: port-mac68k
Date: 09/23/2003 17:03:23
On Tue, Sep 23, 2003 at 09:05:11AM +0200, Hauke Fath wrote:
> >But when it laters links the file, the following error occurs:
> >
> >access/SUBSYS.o: In function `XLogWrite':
> >access/SUBSYS.o(.text+0x19dbc): undefined reference to `tas'
> 
> ISTR there is a macro that properly exports global symbols from inline
> assembler code. Perhaps if you look around in the netbsd (kernel) sources,
> or the mailing list archives?

If tas is defined in a .S file, make sure it includes machine/asm.h
and that tas is "ENTRY(tas)" or "ENTRY_NOPROFILE(tas)".  If it's
inline in a .c file, you should be able to use the equivalent of the
ENTRY() macro and say:
	.text; .even; .globl tas; .type tas,@function; tas:

-allen

-- 
 Allen Briggs                     briggs@wasabisystems.com
 Wasabi Systems, Inc.             http://www.wasabisystems.com/