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