]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS
authorYauheni Kaliuta <yauheni.kaliuta@redhat.com>
Wed, 19 Jul 2017 14:56:49 +0000 (17:56 +0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 4 Aug 2017 15:20:24 +0000 (08:20 -0700)
commit1e48901166efd65c574de9f6a2b7139721b72623
tree3b978bbcefe5023bd3352de1f0c36899dadc84fe
parente61fb329ddf1786ec85aace46d8b2ed0b54d1682
libkmod-elf: resolve CRC if module is built with MODULE_REL_CRCS

Normally exported symbol's crc is stored as absolute (SHN_ABS)
value of special named symbol __crc_<symbol name>.

When the kernel and modules are built with the config option
CONFIG_MODULE_REL_CRCS, all the CRCs are put in a special section
and the __crc_<symbol name> symbols values are offsets in the
section. See patch description of the commit:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=56067812d5b0e737ac2063e94a50f76b810d6ca3

Add kmod support of this configuration.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
libkmod/libkmod-elf.c