diff --git a/kpatch-build/create-klp-module.c b/kpatch-build/create-klp-module.c index c933734..d995525 100644 --- a/kpatch-build/create-klp-module.c +++ b/kpatch-build/create-klp-module.c @@ -486,6 +486,9 @@ int main(int argc, char *argv[]) /* Rebuild rela sections, new klp rela sections will be rebuilt too. */ symtab = find_section_by_name(&kelf->sections, ".symtab"); + if (!symtab) + ERROR("missing .symtab section"); + list_for_each_entry(sec, &kelf->sections, list) { if (!is_rela_section(sec)) continue;