Module Name:    src
Committed By:   matt
Date:           Wed Dec 18 18:39:25 UTC 2013

Modified Files:
        src/share/mk [matt-nb5-mips64]: bsd.sys.mk

Log Message:
Bring OBJCOPYLIBFLAGS from HEAD so we can preserve $a/$d/$t on BE ARM


To generate a diff of this commit:
cvs rdiff -u -r1.179.8.5 -r1.179.8.6 src/share/mk/bsd.sys.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.179.8.5 src/share/mk/bsd.sys.mk:1.179.8.6
--- src/share/mk/bsd.sys.mk:1.179.8.5	Wed Aug 26 03:34:21 2009
+++ src/share/mk/bsd.sys.mk	Wed Dec 18 18:39:25 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.179.8.5 2009/08/26 03:34:21 matt Exp $
+#	$NetBSD: bsd.sys.mk,v 1.179.8.6 2013/12/18 18:39:25 matt Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -212,4 +212,9 @@ YFLAGS+=	${YPREFIX:D-p${YPREFIX}} ${YHEA
 .y.h: ${.TARGET:.h=.c}
 .endif
 
+# Objcopy       
+# ARM big endian needs to preserve $a/$d/$t symbols for the linker.
+OBJCOPYLIBFLAGS?=${"${.TARGET:M*.po}" != "":?-X:-x} \
+        ${"${MACHINE_ARCH:M*arm*eb}" != "":?-K '\$a' -K '\$d' -K '\$t':}
+
 .endif	# !defined(_BSD_SYS_MK_)

Reply via email to