mirror of
https://github.com/dynup/kpatch
synced 2025-04-11 03:31:20 +00:00
add comment for __ksymtab_strings case
Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
parent
abbb12d065
commit
582f2b27e0
@ -375,6 +375,13 @@ void kpatch_create_symbol_table(struct kpatch_elf *kelf)
|
||||
ERROR("couldn't find section for symbol %s\n",
|
||||
sym->name);
|
||||
|
||||
/*
|
||||
* __ksymtab_strings is a special case where the
|
||||
* compiler creates FUNC/OBJECT syms that refer
|
||||
* to offsets inside the __ksymtab_strings section
|
||||
* for kernel exported symbols. We want to ignore
|
||||
* those.
|
||||
*/
|
||||
if ((sym->type == STT_FUNC ||
|
||||
sym->type == STT_OBJECT) &&
|
||||
sym->sym.st_value == 0 &&
|
||||
|
Loading…
Reference in New Issue
Block a user