Makefile.cats.inc revision 1.8
11.8Sskrll#	$NetBSD: Makefile.cats.inc,v 1.8 2002/04/11 16:33:58 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.8SskrllSYSTEM_LD_TAIL_EXTRA+=; \
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