More sections to remove when doing ELF->a.out conversion.

This commit is contained in:
skrll 2009-09-02 07:48:50 +00:00
parent 6769a80c80
commit dd9009a209
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2009/04/03 22:36:35 perry Exp $
# $NetBSD: Makefile,v 1.18 2009/09/02 07:48:50 skrll Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@ -11,6 +11,7 @@ MDSET_RELEASEDIR= binary/kernel
MDSET_POST= \
${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment \
-R .note.netbsd.ident -R .ARM.attributes \
${.TARGET} ${.TARGET}.aout; \
gzip -9nc ${.TARGET}.aout >${.TARGET}.aout.gz

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.shark.inc,v 1.11 2008/06/07 18:47:41 he Exp $
# $NetBSD: Makefile.shark.inc,v 1.12 2009/09/02 07:48:50 skrll Exp $
MACHINE_ARCH= arm
CPPFLAGS+= -D${MACHINE}
@ -22,13 +22,13 @@ SYSTEM_LD_TAIL_EXTRA+=; \
-R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
-R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
-R .debug_frame -R .debug_loc -R .debug_pubnames \
-R .debug_aranges \
-R .debug_aranges -R .ARM.attributes \
$@ $@.aout"; \
${OBJCOPY} -O a.out-arm-netbsd \
-R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
-R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
-R .debug_frame -R .debug_loc -R .debug_pubnames \
-R .debug_aranges \
-R .debug_aranges -R .ARM.attributes \
$@ $@.aout
KERNIMAGES= netbsd netbsd.aout