mirror of
https://github.com/dynup/kpatch
synced 2025-04-08 18:21:54 +00:00
oops, use sym->name, not sym->sec->rela->name
This commit is contained in:
parent
3e14e1859f
commit
3d9a140bfa
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user