Thu Aug 15 12:45:50 2013 UTC ()
Add .ARM.extab to the list of sections to be removed when converting to
aout format.


(martin)
diff -r1.747 -r1.748 src/share/mk/bsd.own.mk

cvs diff -r1.747 -r1.748 src/share/mk/bsd.own.mk (expand / switch to unified diff)

--- src/share/mk/bsd.own.mk 2013/08/12 16:51:14 1.747
+++ src/share/mk/bsd.own.mk 2013/08/15 12:45:50 1.748
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: bsd.own.mk,v 1.747 2013/08/12 16:51:14 joerg Exp $ 1# $NetBSD: bsd.own.mk,v 1.748 2013/08/15 12:45:50 martin Exp $
2 2
3# This needs to be before bsd.init.mk 3# This needs to be before bsd.init.mk
4.if defined(BSD_MK_COMPAT_FILE) 4.if defined(BSD_MK_COMPAT_FILE)
5.include <${BSD_MK_COMPAT_FILE}> 5.include <${BSD_MK_COMPAT_FILE}>
6.endif 6.endif
7 7
8.if !defined(_BSD_OWN_MK_) 8.if !defined(_BSD_OWN_MK_)
9_BSD_OWN_MK_=1 9_BSD_OWN_MK_=1
10 10
11MAKECONF?= /etc/mk.conf 11MAKECONF?= /etc/mk.conf
12.-include "${MAKECONF}" 12.-include "${MAKECONF}"
13 13
14# 14#
@@ -476,26 +476,27 @@ OBJC= ${TOOL_OBJC.${ACTIVE_OBJC}} @@ -476,26 +476,27 @@ OBJC= ${TOOL_OBJC.${ACTIVE_OBJC}}
476.if exists(/usr/bin/${TOOL_CTFCONVERT}) || exists(${TOOL_CTFCONVERT}) 476.if exists(/usr/bin/${TOOL_CTFCONVERT}) || exists(${TOOL_CTFCONVERT})
477CTFCONVERT= ${TOOL_CTFCONVERT} 477CTFCONVERT= ${TOOL_CTFCONVERT}
478CTFMERGE= ${TOOL_CTFMERGE} 478CTFMERGE= ${TOOL_CTFMERGE}
479.endif 479.endif
480 480
481# OBJCOPY flags to create a.out binaries for old firmware 481# OBJCOPY flags to create a.out binaries for old firmware
482# shared among src/distrib and ${MACHINE}/conf/Makefile.${MACHINE}.inc 482# shared among src/distrib and ${MACHINE}/conf/Makefile.${MACHINE}.inc
483.if ${MACHINE_CPU} == "arm" 483.if ${MACHINE_CPU} == "arm"
484OBJCOPY_ELF2AOUT_FLAGS?= \ 484OBJCOPY_ELF2AOUT_FLAGS?= \
485 -O a.out-arm-netbsd \ 485 -O a.out-arm-netbsd \
486 -R .ident \ 486 -R .ident \
487 -R .ARM.attributes \ 487 -R .ARM.attributes \
488 -R .ARM.exidx \ 488 -R .ARM.exidx \
 489 -R .ARM.extab \
489 -R .arm.atpcs \ 490 -R .arm.atpcs \
490 -R .comment \ 491 -R .comment \
491 -R .debug_abbrev \ 492 -R .debug_abbrev \
492 -R .debug_aranges \ 493 -R .debug_aranges \
493 -R .debug_info \ 494 -R .debug_info \
494 -R .debug_line \ 495 -R .debug_line \
495 -R .debug_frame \ 496 -R .debug_frame \
496 -R .debug_loc \ 497 -R .debug_loc \
497 -R .debug_pubnames \ 498 -R .debug_pubnames \
498 -R .debug_pubtypes \ 499 -R .debug_pubtypes \
499 -R .debug_str \ 500 -R .debug_str \
500 -R .eh_frame \ 501 -R .eh_frame \
501 -R .note.netbsd.ident 502 -R .note.netbsd.ident