Module Name: src
Committed By: uebayasi
Date: Thu Nov 6 12:02:59 UTC 2014
Modified Files:
src/sys/conf: Makefile.kern.inc
Log Message:
Leave .map when linking .ko in modular build.
To generate a diff of this commit:
cvs rdiff -u -r1.177 -r1.178 src/sys/conf/Makefile.kern.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.177 src/sys/conf/Makefile.kern.inc:1.178
--- src/sys/conf/Makefile.kern.inc:1.177 Thu Nov 6 11:59:17 2014
+++ src/sys/conf/Makefile.kern.inc Thu Nov 6 12:02:59 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.177 2014/11/06 11:59:17 uebayasi Exp $
+# $NetBSD: Makefile.kern.inc,v 1.178 2014/11/06 12:02:59 uebayasi Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -160,8 +160,8 @@ NORMAL_S?= @${_MKSHMSG} "compile ${.CUR
# link rules:
LINK_O?= @${_MKSHMSG} " link ${.CURDIR:T}/${.TARGET}" && \
${_MKSHECHO}\
- ${LD} -r -o ${.TARGET} ${.ALLSRC} && \
- ${LD} -r -o ${.TARGET} ${.ALLSRC}
+ ${LD} -r -Map=${.TARGET}.map -o ${.TARGET} ${.ALLSRC} && \
+ ${LD} -r -Map=${.TARGET}.map -o ${.TARGET} ${.ALLSRC}
##
## (3) libkern and compat