Mirror the change from shark: something, somewhere is emitting new

ELF sections which we need to filter out when objcopying to the a.out
kernel.  The new sections are .debug_frame, .debug_loc, .debug_pubnames,
and .debug_aranges.
This commit is contained in:
he 2008-06-07 19:22:43 +00:00
parent 9072349832
commit 61b81543f6
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.cats.inc,v 1.20 2008/01/19 18:10:13 he Exp $
# $NetBSD: Makefile.cats.inc,v 1.21 2008/06/07 19:22:43 he Exp $
MACHINE_ARCH= arm
CPPFLAGS+= -D${MACHINE}
@ -26,10 +26,14 @@ SYSTEM_LD_TAIL_EXTRA+=; \
"${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 \
$@ $@.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 \
$@ $@.aout
.endif
.endif