Makefile.cats.inc revision 1.9
1# $NetBSD: Makefile.cats.inc,v 1.9 2002/10/05 17:12:51 chs 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 ${DBSYM} $@ || true; \ 18 echo OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \ 19 ${ARM}/conf/elf2aout.sh $@ $@.aout; \ 20 OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \ 21 ${ARM}/conf/elf2aout.sh $@ $@.aout 22.endif 23