Subject: Re: "overlaps section .rodata" on kernel build
To: None <joel@carnat.net>
From: Andrey Petrov <petrov@netbsd.org>
List: port-sparc64
Date: 01/08/2005 12:24:16
On Sat, Jan 08, 2005 at 08:03:05PM +0100, ptiJo wrote:
> 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 ?

Most likely lack of optimisation resulted in kernel too large to fit in
address space. Kernel has some limitations on how sections are located in
memory. 

	Andrey