We are not creating a.out NMAGIC files, and handling the required alignement

of sections explicitly in the ldscript, so do not pass -n to ld.
This fixes the strange combined text/data sections seen with certain
(smaller) kernels as explained on tech-toolchain.
Found by Nick Hudson, ok: matthew green.
This commit is contained in:
martin 2008-08-30 13:23:55 +00:00
parent 45ee307f3b
commit 3c52d9932f

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.sparc64,v 1.66 2008/02/18 15:02:20 joerg Exp $
# $NetBSD: Makefile.sparc64,v 1.67 2008/08/30 13:23:55 martin Exp $
#=========================================================================
#
@ -96,7 +96,7 @@ locore.o: ${SPARC64}/sparc64/locore.s assym.h
## (5) link settings
##
TEXTADDR?= 01000000
LINKFORMAT= -n -T ${SPARC64}/conf/${KERN_LDSCRIPT}
LINKFORMAT= -T ${SPARC64}/conf/${KERN_LDSCRIPT}
.if ${LP64} == "yes"
KERN_LDSCRIPT?= kern.ldscript
.else