Makefile.cats.inc revision 1.10
1#	$NetBSD: Makefile.cats.inc,v 1.10 2002/10/29 14:33:32 tsutsui Exp $
2
3GENASSYM_EXTRAS+=	${ARM}/footbridge/genassym.cf
4
5.if (${OBJECT_FMT} == "ELF")
6# Need to convert the kernel from ELF to a.out so that OpenFirmware
7# can load it.
8
9# ZMAGIC a.out includes the a.out header in front of the text
10# segment, so if we link the kernel at the normal load address,
11# it will be wrong once the a.out header is stuck in the file.
12# XXX HOWEVER, by linking it +32 bytes to compensate, the resulting
13# XXX ELF kernel cannot be booted itself.
14LOADADDRESS=0xF0000020
15
16SYSTEM_LD_TAIL_EXTRA+=; \
17	echo "${DBSYM} $@ || true"; \
18	${DBSYM} $@ || true; \
19	echo OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
20	    ${ARM}/conf/elf2aout.sh $@ $@.aout; \
21	OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
22	    ${ARM}/conf/elf2aout.sh $@ $@.aout
23.endif
24