Subject: "overlaps section .rodata" on kernel build
To: NetBSD/sparc64 <port-sparc64@netbsd.org>
From: ptiJo <ptijo@tumfatig.net>
List: port-sparc64
Date: 01/08/2005 20:03:05
Hi,

I've just CVSed my /usr/src (-rnetbsd-2-0) and build the GENERIC kernel.
Everything seams OK till the last 'ld' part :

########################################################################
<snip>
#    create  vers.c
sh ../../../../conf/newvers.sh
#   compile  GENERIC/vers.o
cc -pipe  -mcmodel=medlow -mno-fpu     -ffreestanding   -pipe  -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -fno-zero-initialized-in-bss  -Dsparc64 -D__sparc64__ -D_LP64 -Wa,-Av9a -I.  -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT  -c vers.c
#      link  GENERIC/netbsd
ld -n -T ../../../../arch/sparc64/conf/kern.ldscript -Ttext 01000000 -Tdata 01800000 -e start -S -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
ld: section .data [0000000001800000 -> 0000000001827fcf] overlaps section .rodata [00000000016d7488 -> 0000000001821427]
*** Error code 1

Stop.
make: stopped in /usr/src/sys/arch/sparc64/compile/GENERIC
########################################################################

any one knows what this means ?

PS: my /etc/mk.conf contains :
########################################################################
COMMONCFLAGS=           -pipe
COPTS:=                 ${COMMONCFLAGS} ${COPTS:C/-O[0-9]*//g}
CFLAGS:=                ${COMMONCFLAGS} ${CFLAGS:C/-O[0-9]*//g}
CXXFLAGS:=              ${COMMONCFLAGS} ${CXXFLAGS:C/-O[0-9]*//g}
########################################################################

TIA,
	Jo
-- 

,- This mail runs ------.
`--------- NetBSD/i386 -'