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 Use ldscript. Identical output con...



details:   https://anonhg.NetBSD.org/src/rev/3540207cf9af
branches:  trunk
changeset: 795464:3540207cf9af
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Mon Apr 14 15:05:19 2014 +0000

description:
Use ldscript.  Identical output confirmed.

diffstat:

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

diffs (26 lines):

diff -r f3c0691abb3f -r 3540207cf9af sys/arch/i386/stand/boot/Makefile.boot
--- a/sys/arch/i386/stand/boot/Makefile.boot    Mon Apr 14 14:30:24 2014 +0000
+++ b/sys/arch/i386/stand/boot/Makefile.boot    Mon Apr 14 15:05:19 2014 +0000
@@ -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 @@
 .include "${S}/lib/libz/Makefile.inc"
 LIBZ= ${ZLIB}
 
+LDSCRIPT ?= $S/arch/i386/conf/stand.ldscript
 
 cleandir distclean: .WAIT cleanlibdir
 
@@ -149,7 +150,7 @@
                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}
 



Home | Main Index | Thread Index | Old Index