Subject: Re: can't link GENERIC_SUN4U in sparc release crossbuild
To: None <bsieker@rvs.uni-bielefeld.de>
From: Soren Jacobsen <snj@NetBSD.org>
List: tech-toolchain
Date: 07/15/2005 23:40:53
On Jul 14, 2005, at 1:13 AM, Bernd Sieker wrote:

> Hi,
>
> cross-building a -current release snapshot for sparc fails while
> trying to link the 32bit-Kernel for sun4u machines.
>
> Host is 2.0_STABLE/i386, target is sparc, sources are -current,
> last updated Jul 13 12:35.
>
> Linking of the GENERIC_SUN4U kernel fails with the following
> messages:
>
> [...]
> #      link  GENERIC_SUN4U/netbsd
> /usr/source/current/src/obj/tooldir.NetBSD-2.0_STABLE-i386/bin/ 
> sparc--netbsdelf-ld -n -T /usr/source/current/src/sys/arch/sparc64/ 
> conf/kern32.ldscript -Ttext 01000000 -Tdata 01800000 -e start -S -o  
> netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
> /usr/source/current/src/obj/tooldir.NetBSD-2.0_STABLE-i386/bin/ 
> sparc--netbsdelf-ld: section .data [01800000 -> 0183e2d7] overlaps  
> section .rodata [0175afe8 -> 0189db3f]
> /usr/source/current/src/obj/tooldir.NetBSD-2.0_STABLE-i386/bin/ 
> sparc--netbsdelf-ld: section .bss [0183e2d8 -> 0187803f] overlaps  
> section .rodata [0175afe8 -> 0189db3f]

Are you using -pipe?  If so, don't :)