]> CyberLeo.Net >> Repos - FreeBSD/stable/9.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)
commit10e6c6b9bd7dd2405b06475917ddf7f7d0ee2627
tree70a5e5d62ed39b4348d15630b95690a5f33ddb2f
parentbe1bc2db0161e7faf21cec39d52278b5fd52d9c0
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/9@283642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/sys/module.h