Makefile.cats.inc revision 1.10
11.10Stsutsui#	$NetBSD: Makefile.cats.inc,v 1.10 2002/10/29 14:33:32 tsutsui Exp $
21.1Sthorpej
31.1SthorpejGENASSYM_EXTRAS+=	${ARM}/footbridge/genassym.cf
41.3Schris
51.3Schris.if (${OBJECT_FMT} == "ELF")
61.5Sthorpej# Need to convert the kernel from ELF to a.out so that OpenFirmware
71.5Sthorpej# can load it.
81.3Schris
91.5Sthorpej# ZMAGIC a.out includes the a.out header in front of the text
101.5Sthorpej# segment, so if we link the kernel at the normal load address,
111.5Sthorpej# it will be wrong once the a.out header is stuck in the file.
121.5Sthorpej# XXX HOWEVER, by linking it +32 bytes to compensate, the resulting
131.5Sthorpej# XXX ELF kernel cannot be booted itself.
141.4SchrisLOADADDRESS=0xF0000020
151.3Schris
161.8SskrllSYSTEM_LD_TAIL_EXTRA+=; \
171.10Stsutsui	echo "${DBSYM} $@ || true"; \
181.4Schris	${DBSYM} $@ || true; \
191.5Sthorpej	echo OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
201.8Sskrll	    ${ARM}/conf/elf2aout.sh $@ $@.aout; \
211.5Sthorpej	OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
221.8Sskrll	    ${ARM}/conf/elf2aout.sh $@ $@.aout
231.7Sskrll.endif
24