diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index 4bd5f5b..dbe6ddf 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -2351,7 +2351,7 @@ void kpatch_create_mcount_sections(struct kpatch_elf *kelf) list); if (rela->type != R_X86_64_NONE || strcmp(rela->sym->name, "__fentry__")) - ERROR("function '%s' has no fentry call; unable to patch", sym->sec->rela->name); + ERROR("function '%s' has no fentry call; unable to patch", sym->name); rela->type = R_X86_64_PC32; index++;