Subject: Re: CVS commit: src/sys/arch/mips/conf
To: None <simonb@NetBSD.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: source-changes
Date: 11/13/2005 08:55:48
In article <20051111062204.542AF2DA27@cvs.netbsd.org>
simonb@NetBSD.org wrote:

> Module Name:	src
> Committed By:	simonb
> Date:		Fri Nov 11 06:22:04 UTC 2005
> 
> Modified Files:
> 	src/sys/arch/mips/conf: Makefile.mips
> 
> Log Message:
> Build libkern as a .o if LKMs are enabled so that all libkern functions
> are available to LKMs, not just those needed by the kernel at link time.

This seems to cause the following errors on arc:
---
ld -T ../../../../arch/mips/conf/kern.ldscript -Ttext 0x80200000 -e start \
-G 0 -x -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
/usr/src/sys/arch/arc/compile/GENERIC/lib/kern/libkern.o(.text+0x640): \
In function `_insque':
: multiple definition of `_insque'
locore.o(.text+0x5a4): first defined here
/usr/src/sys/arch/arc/compile/GENERIC/lib/kern/libkern.o(.text+0x658): \
In function `_remque':
: multiple definition of `_remque'
locore.o(.text+0x5bc): first defined here
*** Error code 1
---

Is it okay to remove these functions from mips/locore.S?
http://mail-index.netbsd.org/source-changes/2001/08/12/0001.html
http://mail-index.netbsd.org/source-changes/2001/08/13/0008.html
---
Izumi Tsutsui