diff --git a/kpatch-build/kpatch-elf.c b/kpatch-build/kpatch-elf.c index 2a3b034..aa658bc 100644 --- a/kpatch-build/kpatch-elf.c +++ b/kpatch-build/kpatch-elf.c @@ -686,7 +686,8 @@ void kpatch_reindex_elements(struct kpatch_elf *kelf) sym->index = index++; if (sym->sec) sym->sym.st_shndx = sym->sec->index; - else if (sym->sym.st_shndx != SHN_ABS) + else if (sym->sym.st_shndx != SHN_ABS && + sym->sym.st_shndx != SHN_LIVEPATCH) sym->sym.st_shndx = SHN_UNDEF; } }