Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jul 2014 08:49:06 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268138 - head/sys/sys
Message-ID:  <201407020849.s628n68d032404@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Jul  2 08:49:06 2014
New Revision: 268138
URL: http://svnweb.freebsd.org/changeset/base/268138

Log:
  Add support for empty data sets. Data set begin and end pointers
  should resolve to "NULL" when not present. This is done by declaring
  the data set begin and end symbols as "weak".

Modified:
  head/sys/sys/linker_set.h

Modified: head/sys/sys/linker_set.h
==============================================================================
--- head/sys/sys/linker_set.h	Wed Jul  2 08:45:26 2014	(r268137)
+++ head/sys/sys/linker_set.h	Wed Jul  2 08:49:06 2014	(r268138)
@@ -79,9 +79,9 @@
 /*
  * Initialize before referring to a given linker set.
  */
-#define SET_DECLARE(set, ptype)						\
-	extern ptype *__CONCAT(__start_set_,set);			\
-	extern ptype *__CONCAT(__stop_set_,set)
+#define SET_DECLARE(set, ptype)					\
+	extern ptype __weak *__CONCAT(__start_set_,set);	\
+	extern ptype __weak *__CONCAT(__stop_set_,set)
 
 #define SET_BEGIN(set)							\
 	(&__CONCAT(__start_set_,set))



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