Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/csu/common Using ${LD} -x screws up BE arm. Use ${OBJCO...
details: https://anonhg.NetBSD.org/src/rev/597ea2315404
branches: trunk
changeset: 325899:597ea2315404
user: matt <matt%NetBSD.org@localhost>
date: Sat Jan 11 00:18:15 2014 +0000
description:
Using ${LD} -x screws up BE arm. Use ${OBJCOPY} ${OBJCOPYLIBFLAGS} instead
so the $a/$t/$d symbols are preserved.
diffstat:
lib/csu/common/Makefile.inc | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diffs (69 lines):
diff -r a897f09a8227 -r 597ea2315404 lib/csu/common/Makefile.inc
--- a/lib/csu/common/Makefile.inc Fri Jan 10 23:52:53 2014 +0000
+++ b/lib/csu/common/Makefile.inc Sat Jan 11 00:18:15 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.23 2013/11/17 11:16:09 martin Exp $
+# $NetBSD: Makefile.inc,v 1.24 2014/01/11 00:18:15 matt Exp $
.include <bsd.own.mk>
@@ -42,7 +42,7 @@
${_MKTARGET_COMPILE}
${COMPILE.c} ${CFLAGS.crtbegin.c} ${COMMON_DIR}/crtbegin.c -o ${.TARGET}.o
.endif
- ${LD} -x -r -o ${.TARGET} ${.TARGET}.o
+ ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}.o ${.TARGET}
rm -f ${.TARGET}.o
.if ${MKSTRIPIDENT} != "no"
${OBJCOPY} -R .ident ${.TARGET}
@@ -57,7 +57,7 @@
${_MKTARGET_COMPILE}
${COMPILE.c} ${PICFLAGS} -DSHARED ${COMMON_DIR}/crtbegin.c -o ${.TARGET}.o
.endif
- ${LD} -x -r -o ${.TARGET} ${.TARGET}.o
+ ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}.o ${.TARGET}
rm -f ${.TARGET}.o
.if ${MKSTRIPIDENT} != "no"
${OBJCOPY} -R .ident ${.TARGET}
@@ -66,7 +66,7 @@
crtend.o: crtend.S
${_MKTARGET_COMPILE}
${COMPILE.S} ${ARCHDIR}/crtend.S -o ${.TARGET}.o
- ${LD} -x -r -o ${.TARGET} ${.TARGET}.o
+ ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}.o ${.TARGET}
rm -f ${.TARGET}.o
.if ${MKSTRIPIDENT} != "no"
${OBJCOPY} -R .ident ${.TARGET}
@@ -82,8 +82,9 @@
${_MKTARGET_COMPILE}
${COMPILE.S} ${ARCHDIR}/crt0.S -o ${.TARGET}.S.o
${COMPILE.c} ${MY_PICFLAGS} ${COMMON_DIR}/crt0-common.c -o ${.TARGET}.c.o
- ${LD} -x -r -o ${.TARGET} ${.TARGET}.S.o ${.TARGET}.c.o
- rm -f ${.TARGET}.S.o ${.TARGET}.c.o
+ ${LD} -r -o ${.TARGET}.o ${.TARGET}.S.o ${.TARGET}.c.o
+ ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}.o ${.TARGET}
+ rm -f ${.TARGET}.S.o ${.TARGET}.c.o ${.TARGET}.o
.if ${MKSTRIPIDENT} != "no"
${OBJCOPY} -R .ident ${.TARGET}
.endif
@@ -92,8 +93,9 @@
${_MKTARGET_COMPILE}
${COMPILE.S} ${ARCHDIR}/crt0.S -o ${.TARGET}.S.o
${COMPILE.c} ${MY_PICFLAGS} -DMCRT0 ${COMMON_DIR}/crt0-common.c -o ${.TARGET}.c.o
- ${LD} -x -r -o ${.TARGET} ${.TARGET}.S.o ${.TARGET}.c.o
- rm -f ${.TARGET}.S.o ${.TARGET}.c.o
+ ${LD} -r -o ${.TARGET}.o ${.TARGET}.S.o ${.TARGET}.c.o
+ ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}.o ${.TARGET}
+ rm -f ${.TARGET}.S.o ${.TARGET}.c.o ${.TARGET}.o
.if ${MKSTRIPIDENT} != "no"
${OBJCOPY} -R .ident ${.TARGET}
.endif
@@ -103,7 +105,7 @@
crtfm.o: crtfm.c
${_MKTARGET_COMPILE}
${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o
- ${LD} -x -r -o ${.TARGET} ${.TARGET}.o
+ ${OBJCOPY} ${OBJCOPYLIBFLAGS} ${.TARGET}.o ${.TARGET}
rm -f ${.TARGET}.o
.endif
Home |
Main Index |
Thread Index |
Old Index