oops, use sym->name, not sym->sec->rela->name

This commit is contained in:
Corey Henderson 2014-09-08 22:44:55 -04:00
parent 3e14e1859f
commit 3d9a140bfa

View File

@ -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++;