Module Name:    src
Committed By:   dsl
Date:           Wed Nov 18 20:33:39 UTC 2009

Modified Files:
        src/sys/arch/i386/stand/boot: Makefile.boot

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


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/i386/stand/boot/Makefile.boot

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

Modified files:

Index: src/sys/arch/i386/stand/boot/Makefile.boot
diff -u src/sys/arch/i386/stand/boot/Makefile.boot:1.40 src/sys/arch/i386/stand/boot/Makefile.boot:1.41
--- src/sys/arch/i386/stand/boot/Makefile.boot:1.40	Mon Mar 30 09:22:52 2009
+++ src/sys/arch/i386/stand/boot/Makefile.boot	Wed Nov 18 20:33:39 2009
@@ -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>

Reply via email to