Subject: Re: port-i386/1628: boot doesn't link
To: None <gnats-bugs@gnats.netbsd.org>
From: Mike Long <mike.long@analog.com>
List: netbsd-bugs
Date: 10/18/1995 11:33:52
>Date: Mon, 16 Oct 1995 23:10:49 -0400
>From: "Gary D. Duzan" <gary@wheel.tiac.net>

>>Number:         1628
>>Category:       port-i386
>>Synopsis:       boot doesn't link

>cc -O -I/usr/src/sys/arch/i386/boot/../../../lib/libkern/arch/i386  -O6 -DI386_CPU -DI486_CPU -DI586_CPU -DDO_BAD144 -I. -I/usr/src/sys/arch/i386/boot -I/usr/src/sys/arch/i386/boot/../../.. -I/usr/src/sys/arch/i386/boot/../..  -c /usr/src/sys/arch/i386/boot/../../../lib/libkern/xordi3.c
>building standard kern library
>ld -Bstatic -e start -N -T 0 -o boot start.o table.o boot.o asm.o bios.o io.o disk.o sys.o version.o lib/kern/libkern.o
>io.o: Definition of symbol `_strcmp' (multiply defined)
>lib/kern/libkern.o: Definition of symbol `_strcmp' (multiply defined)
>*** Error code 1

The move from libkern.a to libkern.o also makes the secondary
bootstrap too big (10.5K).  Either libkern.a needs to come back or the
i386 bootstrap needs to get the functions from somewhere else
(libsa?).
-- 
Mike Long <mike.long@analog.com>           http://www.shore.net/~mikel
VLSI Design Engineer         finger mikel@shore.net for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA                assert(*this!=opinionof(Analog));