svn commit: r223601 - stable/8/sys/conf

Alexander Kabaev kan at FreeBSD.org
Mon Jun 27 18:19:54 UTC 2011


Author: kan
Date: Mon Jun 27 18:19:54 2011
New Revision: 223601
URL: http://svn.freebsd.org/changeset/base/223601

Log:
  Add missing support to generate well-formed CTF data in dynamic modules.

Modified:
  stable/8/sys/conf/kmod.mk

Modified: stable/8/sys/conf/kmod.mk
==============================================================================
--- stable/8/sys/conf/kmod.mk	Mon Jun 27 16:54:59 2011	(r223600)
+++ stable/8/sys/conf/kmod.mk	Mon Jun 27 18:19:54 2011	(r223601)
@@ -132,6 +132,10 @@ CFLAGS+=	-mlongcall -fno-omit-frame-poin
 CFLAGS+=	-G0 -fno-pic -mno-abicalls -mlong-calls
 .endif
 
+.if defined(DEBUG) || defined(DEBUG_FLAGS)
+CTFFLAGS+=      -g
+.endif
+
 .if defined(FIRMWS)
 .if !exists(@)
 ${KMOD:S/$/.c/}: @
@@ -197,6 +201,9 @@ ${KMOD}.kld: ${OBJS}
 ${FULLPROG}: ${OBJS}
 .endif
 	${LD} ${LDFLAGS} -r -d -o ${.TARGET} ${OBJS}
+.if defined(WITH_CTF)
+	${CTFMERGE} ${CTFFLAGS} -o ${.TARGET} ${OBJS}
+.endif
 .if defined(EXPORT_SYMS)
 .if ${EXPORT_SYMS} != YES
 .if ${EXPORT_SYMS} == NO


More information about the svn-src-stable-8 mailing list