NetBSD/sys/arch/mipsco/conf/Makefile.mipsco.inc
wdk 8e913e0c2a Use custom linker script for building ECOFF kernel images. The PROM loader
is fussy about the order of sections and location of memory gaps so we
must produce a firmware friendly version of the kernel as netbsd.ecoff for
network booting

The ELF version uses the standard mips linker script which can be loaded
by the new bootstrap routines
2001-01-22 01:54:03 +00:00

19 lines
625 B
PHP

# $NetBSD: Makefile.mipsco.inc,v 1.2 2001/01/22 01:54:03 wdk Exp $
# Used if DEBUG != ""
DEBUG_SYSTEM_LD_TAIL+=; \
echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
# build ECOFF image that can be booted directly from firmware
LD_ECOFF= ${LD} -N -Ttext ${TEXTADDR} -e start ${GP} \
-T ${THISMIPS}/conf/kern.ldscript -x -oformat ecoff-bigmips
SYSTEM_LD_TAIL= @echo ${LD_ECOFF} -o $@.ecoff '$${SYSTEM_OBJ}' vers.o ; \
${LD_ECOFF} -o $@.ecoff ${SYSTEM_OBJ} vers.o swapnetbsd.o
SYSTEM_LD_TAIL+=; \
${SIZE} $@ $@.ecoff; chmod 755 $@ $@.ecoff