Remove .pdr section which is created by binutils-2.13.2.1

on objcopy call to make ECOFF kernels.
This commit is contained in:
tsutsui 2003-03-08 02:58:55 +00:00
parent 4b4f884b89
commit 12a8e27857
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.arc.inc,v 1.8 2002/12/07 21:35:58 tsutsui Exp $
# $NetBSD: Makefile.arc.inc,v 1.9 2003/03/08 02:58:55 tsutsui Exp $
CFLAGS+= -mips2 -mcpu=r4000
AFLAGS+= -mips2
@ -7,7 +7,8 @@ AFLAGS+= -mips2
SYSTEM_LD_TAIL_EXTRA=; \
echo "${DBSYM} $@ || true"; \
${DBSYM} $@ || true; \
echo ${OBJCOPY} -O ecoff-littlemips -R .mdebug -R .ident $@ $@.ecoff; \
${OBJCOPY} -O ecoff-littlemips -R .mdebug -R .ident $@ $@.ecoff
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@}