From 3ae0c11417427d6e40b5d42f529da38b9aae2943 Mon Sep 17 00:00:00 2001 From: reinoud Date: Sun, 21 Aug 2011 15:06:27 +0000 Subject: [PATCH] Link the usermode kernel staticly to avoid libc littering the virtual space. --- sys/arch/usermode/conf/Makefile.usermode | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/usermode/conf/Makefile.usermode b/sys/arch/usermode/conf/Makefile.usermode index e29ef40f6563..834fa41e7070 100644 --- a/sys/arch/usermode/conf/Makefile.usermode +++ b/sys/arch/usermode/conf/Makefile.usermode @@ -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 @@ MD_SFILES= ## 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 ##