Remove .mdebug.abi32 and .comment sections created by binutils-2.14
on converting kernels into ECOFF. ARC BIOS may be confused by these sections without valid address.
This commit is contained in:
parent
070747cba1
commit
0f0f2c4943
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.7 2003/05/05 11:41:07 tsutsui Exp $
|
||||
# $NetBSD: Makefile,v 1.8 2004/08/30 16:10:03 tsutsui Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
||||
@ -11,7 +11,8 @@ MDSET_RELEASEDIR= binary/kernel
|
||||
|
||||
MDSET_SUFFIXES.-= ecoff create-ecoff
|
||||
create-ecoff= ${OBJCOPY} -O ecoff-littlemips \
|
||||
-R .mdebug -R .ident -R .pdr ${.TARGET:R} ${.TARGET}
|
||||
-R .pdr -R .mdebug.abi32 -R .comment -R .ident \
|
||||
${.TARGET:R} ${.TARGET}
|
||||
|
||||
.include "${DISTRIBDIR}/common/Makefile.mdset"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile.arc.inc,v 1.11 2003/10/26 11:27:54 tsutsui Exp $
|
||||
# $NetBSD: Makefile.arc.inc,v 1.12 2004/08/30 16:08:24 tsutsui Exp $
|
||||
|
||||
CFLAGS+= -mips2
|
||||
AFLAGS+= -mips2
|
||||
@ -9,8 +9,9 @@ LINKFORMAT= -N
|
||||
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
|
||||
echo ${OBJCOPY} -O ecoff-littlemips \
|
||||
-R .pdr -R .mdebug.abi32 -R .comment -R .ident $@ $@.ecoff; \
|
||||
${OBJCOPY} -O ecoff-littlemips \
|
||||
-R .pdr -R .mdebug.abi32 -R .comment -R .ident $@ $@.ecoff
|
||||
|
||||
EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.ecoff@}
|
||||
|
Loading…
x
Reference in New Issue
Block a user