commit | afa0459daa7b08c7b2c879705b69d39b734a11d0 | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <yamada.masahiro@socionext.com> | Fri Nov 15 02:42:21 2019 +0900 |
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | Sat Nov 23 12:44:24 2019 +0900 |
tree | 68d221aea26c4a920b4871e64c4913fde978d75f | |
parent | 7ecaf069da52e472d393f03e79d721aabd724166 [diff] |
modpost: add a helper to get data pointed by a symbol When CONFIG_MODULE_REL_CRCS is enabled, the value of __crc_* is not an absolute value, but the address to the CRC data embedded in the .rodata section. Getting the data pointed by the symbol value is somewhat complex. Split it out into a new helper, sym_get_data(). I will reuse it to refactor namespace_from_kstrtabns() in the next commit. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>