diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index e29ba3b..8bf2327 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -1212,6 +1212,7 @@ int kpatch_include_hook_elements(struct kpatch_elf *kelf) kpatch_include_symbol(sym, 0); /* strip the hook symbol */ sym->include = 0; + sym->sec->sym = NULL; /* use section symbol instead */ rela->sym = sym->sec->secsym; } else {