Module Name: src Committed By: christos Date: Fri Nov 1 00:18:24 UTC 2013
Modified Files: src/sys/arch/i386/stand/bootxx: Makefile.bootxx Log Message: provide an ldscript to strip the unwind sections XXX: untested To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/sys/arch/i386/stand/bootxx/Makefile.bootxx 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/bootxx/Makefile.bootxx diff -u src/sys/arch/i386/stand/bootxx/Makefile.bootxx:1.45 src/sys/arch/i386/stand/bootxx/Makefile.bootxx:1.46 --- src/sys/arch/i386/stand/bootxx/Makefile.bootxx:1.45 Wed Aug 21 20:13:00 2013 +++ src/sys/arch/i386/stand/bootxx/Makefile.bootxx Thu Oct 31 20:18:24 2013 @@ -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 @@ KERN_AS= library .include "${S}/lib/libkern/Makefile.inc" LIBKERN= ${KERNLIB} +LDSCRIPT ?= $S/arch/i386/conf/stand.ldscript cleandir distclean: .WAIT cleanlibdir @@ -122,7 +123,7 @@ CLEANFILES+= ${PROG}.sym ${PROG}.map ${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 \