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/bootxx provide an ldscript to strip the ...
details: https://anonhg.NetBSD.org/src/rev/fa393c72bc42
branches: trunk
changeset: 791023:fa393c72bc42
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 01 00:18:24 2013 +0000
description:
provide an ldscript to strip the unwind sections
XXX: untested
diffstat:
sys/arch/i386/stand/bootxx/Makefile.bootxx | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 708334bc9dea -r fa393c72bc42 sys/arch/i386/stand/bootxx/Makefile.bootxx
--- a/sys/arch/i386/stand/bootxx/Makefile.bootxx Thu Oct 31 21:02:11 2013 +0000
+++ b/sys/arch/i386/stand/bootxx/Makefile.bootxx Fri Nov 01 00:18:24 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.bootxx,v 1.45 2013/08/22 00:13:00 matt Exp $
+# $NetBSD: Makefile.bootxx,v 1.46 2013/11/01 00:18:24 christos Exp $
S= ${.CURDIR}/../../../../..
@@ -109,6 +109,7 @@
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN= ${KERNLIB}
+LDSCRIPT ?= $S/arch/i386/conf/stand.ldscript
cleandir distclean: .WAIT cleanlibdir
@@ -122,7 +123,7 @@
${PROG}: ${OBJS} ${LIBLIST}
${_MKTARGET_LINK}
${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
- -Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
+ -T ${LDSCRIPT} -Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
${OBJCOPY} -O binary ${PROG}.sym ${PROG}
@ sz=$$(${TOOL_STAT} -f '%z' ${PROG}); \
if [ "$$sz" -gt "${BOOTXX_MAXSIZE}" ]; then \
Home |
Main Index |
Thread Index |
Old Index