Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/stand/boot Keep the output of 'ld' prior to ex...



details:   https://anonhg.NetBSD.org/src/rev/2e99dd3e2261
branches:  trunk
changeset: 749132:2e99dd3e2261
user:      dsl <dsl%NetBSD.org@localhost>
date:      Wed Nov 18 20:33:39 2009 +0000

description:
Keep the output of 'ld' prior to extracting the image.
Useful for debugging (etc) since it contains the symbols.

diffstat:

 sys/arch/i386/stand/boot/Makefile.boot |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 53358e8851c8 -r 2e99dd3e2261 sys/arch/i386/stand/boot/Makefile.boot
--- a/sys/arch/i386/stand/boot/Makefile.boot    Wed Nov 18 19:42:18 2009 +0000
+++ b/sys/arch/i386/stand/boot/Makefile.boot    Wed Nov 18 20:33:39 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.boot,v 1.40 2009/03/30 09:22:52 tsutsui Exp $
+# $NetBSD: Makefile.boot,v 1.41 2009/11/18 20:33:39 dsl Exp $
 
 S=     ${.CURDIR}/../../../../..
 
@@ -145,7 +145,7 @@
 # explicitly pull in the required objects before any other library code.
 ${PROG}: ${OBJS} ${LIBLIST} ${.CURDIR}/../Makefile.boot
        ${_MKTARGET_LINK}
-       bb="$$( ${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0 -Wl,-cref \
+       bb="$$( ${CC} -o ${PROG}.syms ${LDFLAGS} -Wl,-Ttext,0 -Wl,-cref \
            ${OBJS} ${LIBLIST} | ( \
                while read symbol file; do \
                        [ -z "$$file" ] && continue; \
@@ -161,9 +161,8 @@
                do :; \
                done; \
        ) )"; \
-       ${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0 \
+       ${CC} -o ${PROG}.syms ${LDFLAGS} -Wl,-Ttext,0 \
                -Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} $$bb ${LIBLIST}
-       ${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
-       rm -f ${PROG}.tmp
+       ${OBJCOPY} -O binary ${PROG}.syms ${PROG}
 
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index