mirror of
https://github.com/dynup/kpatch
synced 2025-01-18 11:00:44 +00:00
Merge pull request #1072 from jpoimboe/callback-strip-fix
create-diff-object: Don't strip callback section symbols
This commit is contained in:
commit
40efb838cc
@ -1570,9 +1570,10 @@ static int kpatch_include_callback_elements(struct kpatch_elf *kelf)
|
||||
}
|
||||
}
|
||||
|
||||
/* Strip temporary global structures used by the callback macros. */
|
||||
/* Strip temporary structure symbols used by the callback macros. */
|
||||
list_for_each_entry(sym, &kelf->symbols, list) {
|
||||
if (sym->sec && is_callback_section(sym->sec))
|
||||
if (sym->type == STT_OBJECT && sym->sec &&
|
||||
is_callback_section(sym->sec))
|
||||
sym->include = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user