Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/usermode/conf Link the usermode kernel staticly to ...



details:   https://anonhg.NetBSD.org/src/rev/07c14536a5e6
branches:  trunk
changeset: 768585:07c14536a5e6
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Sun Aug 21 15:06:27 2011 +0000

description:
Link the usermode kernel staticly to avoid libc littering the virtual space.

diffstat:

 sys/arch/usermode/conf/Makefile.usermode |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 7393b3687ab5 -r 07c14536a5e6 sys/arch/usermode/conf/Makefile.usermode
--- a/sys/arch/usermode/conf/Makefile.usermode  Sun Aug 21 14:20:34 2011 +0000
+++ b/sys/arch/usermode/conf/Makefile.usermode  Sun Aug 21 15:06:27 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.usermode,v 1.10 2011/08/13 10:33:52 jmcneill Exp $
+# $NetBSD: Makefile.usermode,v 1.11 2011/08/21 15:06:27 reinoud Exp $
 
 MACHINE_ARCH=                  usermode
 USETOOLS?=                     no
@@ -40,8 +40,8 @@
 ##
 SYSTEM_LD=     @${_MKSHMSG} "   link  ${.CURDIR:T}/${.TARGET}"; \
                ${_MKSHECHO}\
-               ${CC} ${COPTS} -Wl,-Map,$@.map -o $@ '$${SYSTEM_OBJ}' '$${EXTRA_OBJ}' vers.o ${USERMODE_LIBS}; \
-               ${CC} ${COPTS} -Wl,-Map,$@.map -o $@ ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o ${USERMODE_LIBS}
+               ${CC} ${COPTS} -Wl,-Map,$@.map,-Bstatic -o $@ '$${SYSTEM_OBJ}' '$${EXTRA_OBJ}' vers.o ${USERMODE_LIBS}; \
+               ${CC} ${COPTS} -Wl,-Map,$@.map,-Bstatic -o $@ ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o ${USERMODE_LIBS}
 NVFLAGS=       -n
 
 ##



Home | Main Index | Thread Index | Old Index