Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jun 2011 18:19:54 +0000 (UTC)
From:      Alexander Kabaev <kan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r223601 - stable/8/sys/conf
Message-ID:  <201106271819.p5RIJsXE008436@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106271819.p5RIJsXE008436>