Subject: Re: Spring cleaning on pmax, loadfile
To: Simon Burge <simonb@NetBSD.ORG>
From: Erik Bertelsen <erik@mediator.uni-c.dk>
List: port-pmax
Date: 05/31/1999 07:07:31
On Mon, May 31, 1999 at 01:49:11PM +1000, Simon Burge wrote:
> 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.
No, nothing. It seems that loadfile is defined in stand/scsib oot/bootxx.c, but
this file is not part of libsa.a. Could you give the CVS version of the (Make)file
that should cause loadfile to be compiled into libsa.a -- then I'll check that
my files are really up to date.
- Erik