Makefile.cats.inc revision 1.7
11.7Sskrll#	$NetBSD: Makefile.cats.inc,v 1.7 2002/04/04 16:04:22 skrll Exp $
21.1Sthorpej
31.1SthorpejGENASSYM_EXTRAS+=	${ARM}/footbridge/genassym.cf
41.2SchrisLOOSE_PROTOTYPES=	NO
51.3Schris
61.3Schris.if (${OBJECT_FMT} == "ELF")
71.5Sthorpej# Need to convert the kernel from ELF to a.out so that OpenFirmware
81.5Sthorpej# can load it.
91.3Schris
101.5Sthorpej# ZMAGIC a.out includes the a.out header in front of the text
111.5Sthorpej# segment, so if we link the kernel at the normal load address,
121.5Sthorpej# it will be wrong once the a.out header is stuck in the file.
131.5Sthorpej# XXX HOWEVER, by linking it +32 bytes to compensate, the resulting
141.5Sthorpej# XXX ELF kernel cannot be booted itself.
151.4SchrisLOADADDRESS=0xF0000020
161.3Schris
171.4SchrisSYSTEM_LD_TAIL_EXTRA=; \
181.4Schris	${DBSYM} $@ || true; \
191.5Sthorpej	echo OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
201.6Schris	    ${ARM}/conf/elf2aout.sh $@ $@; \
211.5Sthorpej	OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
221.6Schris	    ${ARM}/conf/elf2aout.sh $@ $@
231.7Sskrll.endif
24