Module Name:    src
Committed By:   uebayasi
Date:           Mon Apr 14 15:05:19 UTC 2014

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

Log Message:
Use ldscript.  Identical output confirmed.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 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.65 src/sys/arch/i386/stand/boot/Makefile.boot:1.66
--- src/sys/arch/i386/stand/boot/Makefile.boot:1.65	Mon Apr 14 13:04:44 2014
+++ src/sys/arch/i386/stand/boot/Makefile.boot	Mon Apr 14 15:05:19 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.boot,v 1.65 2014/04/14 13:04:44 uebayasi Exp $
+# $NetBSD: Makefile.boot,v 1.66 2014/04/14 15:05:19 uebayasi Exp $
 
 S=	${.CURDIR}/../../../../..
 
@@ -114,6 +114,7 @@ Z_AS= library
 .include "${S}/lib/libz/Makefile.inc"
 LIBZ= ${ZLIB}
 
+LDSCRIPT ?= $S/arch/i386/conf/stand.ldscript
 
 cleandir distclean: .WAIT cleanlibdir
 
@@ -149,7 +150,7 @@ ${PROG}: ${OBJS} ${LIBLIST} ${.CURDIR}/.
 		do :; \
 		done; \
 	) )"; \
-	${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,0 \
+	${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,0 -T ${LDSCRIPT} \
 		-Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} $$bb ${LIBLIST}
 	${OBJCOPY} -O binary ${PROG}.sym ${PROG}
 

Reply via email to