NetBSD/sys/arch/arc/conf/Makefile.arc.inc
tsutsui fdcf304c05 Set LINKFORMAT=-N.
ARCBIOS on Tyne can recognize only ECOFF with OMAGIC header.

XXX The real fix is implementing native bootloader.
2003-06-14 09:55:10 +00:00

17 lines
431 B
PHP

# $NetBSD: Makefile.arc.inc,v 1.10 2003/06/14 09:55:10 tsutsui Exp $
CFLAGS+= -mips2 -mcpu=r4000
AFLAGS+= -mips2
LINKFORMAT= -N
# XXX
SYSTEM_LD_TAIL_EXTRA=; \
echo "${DBSYM} $@ || true"; \
${DBSYM} $@ || true; \
echo ${OBJCOPY} -O ecoff-littlemips -R .mdebug -R .ident -R .pdr \
$@ $@.ecoff; \
${OBJCOPY} -O ecoff-littlemips -R .mdebug -R .ident -R .pdr $@ $@.ecoff
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ecoff@}