Something, somewhere has started emitting a number of new ELF sections,

and these need to be removed when objcompying to netbsd.aout.  The new
ones were .debug_frame, .debug_loc, .debug_pubnames, and .debug_aranges.
This commit is contained in:
he 2008-06-07 18:47:41 +00:00
parent ea16b13f64
commit 9072349832

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.shark.inc,v 1.10 2008/01/19 18:10:13 he Exp $
# $NetBSD: Makefile.shark.inc,v 1.11 2008/06/07 18:47:41 he Exp $
MACHINE_ARCH= arm
CPPFLAGS+= -D${MACHINE}
@ -21,10 +21,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
KERNIMAGES= netbsd netbsd.aout