Subject: Re: Spring cleaning on pmax, loadfile
To: Erik Bertelsen <erik@mediator.uni-c.dk>
From: Simon Burge <simonb@netbsd.org>
List: port-pmax
Date: 05/31/1999 13:49:11
Erik Bertelsen wrote:

> On my DS5000/133 running -current as of yesterday, I get the following while
> trying to do a make in arch/pmax/stand:
> 
> ld -Map boot.map -N -x -Ttext 80710000 -T /usr/src/sys/arch/pmax/stand/boot/../../../../arch/mips/conf/stand.ldscript -e start  start.o boot.o vers
o /usr/src/sys/arch/pmax/stand/boot/obj.pmax/lib/pmax/libpmax.a /usr/src/sys/arch/pmax/stand/boot/obj.pmax/lib/kern/libkern.a /usr/src/sys/arch/pmax
/stand/boot/obj.pmax/lib/sa/libsa.a /usr/src/sys/arch/pmax/stand/boot/obj.pmax/lib/z/libz.a /usr/src/sys/arch/pmax/stand/boot/obj.pmax/lib/kern/libke
rn.a /usr/src/sys/arch/pmax/stand/boot/obj.pmax/lib/pmax/libpmax.a -o boot
> boot.o: In function `main':
> /usr/src/sys/arch/pmax/stand/boot/boot.c(.text+0xcc): undefined reference to `loadfile'
> /usr/src/sys/arch/pmax/stand/boot/boot.c(.text+0xcc): relocation truncated to fit: R_MIPS_26 loadfile
> /usr/src/sys/arch/pmax/stand/boot/boot.c(.text+0x12c): undefined reference to `loadfile'
> /usr/src/sys/arch/pmax/stand/boot/boot.c(.text+0x12c): relocation truncated to fit: R_MIPS_26 loadfile
> 
> As usual the question is: did I goof (which has happened before :-) -- or is there
> a problem here ?

It should "just work".  You're using objdirs, so loadfile should be in
stand/boot/obj.pmax/lib/sa/libsa.a.  Does:

	nm -o ..../libsa.a | grep loadfile

show anything?

Simon.