Use ld -N (OMAGIC), since this saves the 32k of RAM (by not putting a gap
between text and data) and means that loadfile only needs one backward seek to load the file rather than two (which is important for gzipped kernels).
This commit is contained in:
parent
27f96e8440
commit
ddf906b00d
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.arm26,v 1.7 2001/05/29 02:20:21 mrg Exp $
|
||||
# $NetBSD: Makefile.arm26,v 1.8 2001/07/28 13:48:32 bjh21 Exp $
|
||||
|
||||
# Makefile for NetBSD/arm26
|
||||
#
|
||||
|
@ -53,10 +53,11 @@ CFLAGS= -ffixed-r14 ${DEBUG} ${COPTS} ${CWARNFLAGS}
|
|||
AFLAGS= -x assembler-with-cpp -D_LOCORE
|
||||
|
||||
LOADADDRESS= 0x02098000
|
||||
LINKFLAGS= -N # No gap between text and data
|
||||
.ifdef ROMTEXTBASE
|
||||
LINKFLAGS= -Ttext ${ROMTEXTBASE} -Tdata ${LOADADDRESS} -e start
|
||||
LINKFLAGS+= -Ttext ${ROMTEXTBASE} -Tdata ${LOADADDRESS} -e start
|
||||
.else
|
||||
LINKFLAGS= -Ttext ${LOADADDRESS} -e start
|
||||
LINKFLAGS+= -Ttext ${LOADADDRESS} -e start
|
||||
.endif
|
||||
STRIPFLAGS= -g
|
||||
|
||||
|
|
Loading…
Reference in New Issue