From owner-cvs-all Wed Jan 9 19:52:15 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4B34C37B416; Wed, 9 Jan 2002 19:52:01 -0800 (PST) Received: (from msmith@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0A3q1r82647; Wed, 9 Jan 2002 19:52:01 -0800 (PST) (envelope-from msmith) Message-Id: <200201100352.g0A3q1r82647@freefall.freebsd.org> From: Mike Smith Date: Wed, 9 Jan 2002 19:52:01 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/conf kern.post.mk kern.pre.mk kmod.mk kmod_syms.awk X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG msmith 2002/01/09 19:52:01 PST Modified files: sys/conf kern.post.mk kern.pre.mk kmod.mk Added files: sys/conf kmod_syms.awk Log: Eliminate the use of commons in the kernel and modules, simplifying the module linking process and eliminating the risks associated with doubly-defined variables. Cases where commons were legitimately used (detection of compiled-in subsystems) have been converted to use sysinits, and any new code should use this or an equivalent practice as a matter of course. Modules can override this behaviour by substituting -fno-common out of ${CFLAGS} in cases where commons are necessary (eg. third-party object modules). Commons will be resolved and allocated space when the kld is linked as part of the module build process, so they will not pose a risk to the kernel or other modules. Provide a mechanism for controlling the export of symbols from the module namespace. The EXPORT_SYMS variable may be set in the Makefile to NO (export no symbols), a list of symbols to export, or the name of a file containing a newline-seperated list of symbols to be exported. Non-exported symbols are converted to local symbols. If EXPORT_SYMS is not set, all global symbols are currently exported. This behaviour is expected to change (to exporting no symbols) once modules have been converted. Reviewed by: peter (in principle) Obtained from: green (kmod_syms.awk) Revision Changes Path 1.7 +1 -1 src/sys/conf/kern.post.mk 1.5 +2 -2 src/sys/conf/kern.pre.mk 1.110 +28 -1 src/sys/conf/kmod.mk 1.1 +27 -0 src/sys/conf/kmod_syms.awk (new) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message