Remove the .note section when creating the a.out kernel image.

This commit is contained in:
skrll 2007-11-17 09:07:42 +00:00
parent 833a64ae25
commit 64ad60da4f
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.cats.inc,v 1.18 2007/03/04 02:35:49 tsutsui Exp $
# $NetBSD: Makefile.cats.inc,v 1.19 2007/11/17 09:07:42 skrll Exp $
MACHINE_ARCH= arm
CPPFLAGS+= -D${MACHINE}
@ -23,7 +23,7 @@ SYSTEM_LD_HEAD_EXTRA+=; \
SYSTEM_LD_TAIL_EXTRA+=; \
echo \
"${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment $@ $@.aout"; \
${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment $@ $@.aout
"${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident $@ $@.aout"; \
${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident $@ $@.aout
.endif
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.shark.inc,v 1.8 2007/03/12 15:09:35 jmmv Exp $
# $NetBSD: Makefile.shark.inc,v 1.9 2007/11/17 09:07:42 skrll Exp $
MACHINE_ARCH= arm
CPPFLAGS+= -D${MACHINE}
@ -18,8 +18,8 @@ SYSTEM_LD_HEAD_EXTRA+=; \
SYSTEM_LD_TAIL_EXTRA+=; \
echo \
"${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment $@ $@.aout"; \
${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment $@ $@.aout
"${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident $@ $@.aout"; \
${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident $@ $@.aout
KERNIMAGES= netbsd netbsd.aout