]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r283254:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 28 May 2015 06:45:13 +0000 (06:45 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 28 May 2015 06:45:13 +0000 (06:45 +0000)
commit8eb99979f728db19ab3d9d69e2f3483614326f7c
tree2e499f35529da7fa72f8ed269f033436675ca211
parentc4f7b128b3877846afc39361a9f7f27c8036c3b7
MFC r283254:

Ensure that the static structs emitted by the MODULE_DEPEND() and
MODULE_VERSION() macros don't end up as .comm symbols, when all the
version fields are zero.

Normally, such symbols will end up in .bss, but for kernel module
version objects, this can lead to "garbage" version numbers.

Fix this by instructing the compiler to always put these structs in the
.data segment instead.

Reported by: delphij, ae

git-svn-id: svn://svn.freebsd.org/base/stable/8@283642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/sys/module.h