Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/csu/common Move crt0.S in front of crt0-common.c when bu...
details: https://anonhg.NetBSD.org/src/rev/7f2d42b80b79
branches: trunk
changeset: 773350:7f2d42b80b79
user: uwe <uwe%NetBSD.org@localhost>
date: Tue Jan 31 20:08:28 2012 +0000
description:
Move crt0.S in front of crt0-common.c when building crt0.o and gcrt0.o.
Reading disassembly is easier when the asm crt0.S trampoline is at the
start, not hidden behind the C code in crt0-common.c.
diffstat:
lib/csu/common/Makefile.inc | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diffs (40 lines):
diff -r 147361836027 -r 7f2d42b80b79 lib/csu/common/Makefile.inc
--- a/lib/csu/common/Makefile.inc Tue Jan 31 20:05:13 2012 +0000
+++ b/lib/csu/common/Makefile.inc Tue Jan 31 20:08:28 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.5 2012/01/31 20:03:50 uwe Exp $
+# $NetBSD: Makefile.inc,v 1.6 2012/01/31 20:08:28 uwe Exp $
.include <bsd.own.mk>
@@ -45,22 +45,22 @@
PICFLAGS=
.endif
-crt0.o: crt0-common.c crt0.S
+crt0.o: crt0.S crt0-common.c
${_MKTARGET_COMPILE}
+ ${COMPILE.S} ${ARCHDIR}/crt0.S -o ${.TARGET}.S.o
${COMPILE.c} ${PICFLAGS} ${COMMON_DIR}/crt0-common.c -o ${.TARGET}.c.o
- ${COMPILE.S} ${ARCHDIR}/crt0.S -o ${.TARGET}.S.o
- ${LD} -x -r -o ${.TARGET} ${.TARGET}.c.o ${.TARGET}.S.o
- rm -f ${.TARGET}.c.o ${.TARGET}.S.o
+ ${LD} -x -r -o ${.TARGET} ${.TARGET}.S.o ${.TARGET}.c.o
+ rm -f ${.TARGET}.S.o ${.TARGET}.c.o
.if ${MKSTRIPIDENT} != "no"
${OBJCOPY} -R .ident ${.TARGET}
.endif
-gcrt0.o: crt0-common.c crt0.S
+gcrt0.o: crt0.S crt0-common.c
${_MKTARGET_COMPILE}
+ ${COMPILE.S} ${ARCHDIR}/crt0.S -o ${.TARGET}.S.o
${COMPILE.c} ${PICFLAGS} -DMCRT0 ${COMMON_DIR}/crt0-common.c -o ${.TARGET}.c.o
- ${COMPILE.S} ${ARCHDIR}/crt0.S -o ${.TARGET}.S.o
- ${LD} -x -r -o ${.TARGET} ${.TARGET}.c.o ${.TARGET}.S.o
- rm -f ${.TARGET}.c.o ${.TARGET}.S.o
+ ${LD} -x -r -o ${.TARGET} ${.TARGET}.S.o ${.TARGET}.c.o
+ rm -f ${.TARGET}.S.o ${.TARGET}.c.o
.if ${MKSTRIPIDENT} != "no"
${OBJCOPY} -R .ident ${.TARGET}
.endif
Home |
Main Index |
Thread Index |
Old Index