mirror of
https://github.com/dynup/kpatch
synced 2024-12-26 07:12:03 +00:00
Merge pull request #390 from jpoimboe/inter-object-call
support for calling a new function in another object
This commit is contained in:
commit
d0606ae91d
@ -2126,11 +2126,15 @@ void kpatch_create_dynamic_rela_sections(struct kpatch_elf *kelf,
|
|||||||
*/
|
*/
|
||||||
if (lookup_is_exported_symbol(table, rela->sym->name))
|
if (lookup_is_exported_symbol(table, rela->sym->name))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If lookup_global_symbol() fails, assume the
|
||||||
|
* symbol is defined in another object in the
|
||||||
|
* patch module.
|
||||||
|
*/
|
||||||
if (lookup_global_symbol(table, rela->sym->name,
|
if (lookup_global_symbol(table, rela->sym->name,
|
||||||
&result))
|
&result))
|
||||||
ERROR("lookup_global_symbol failed for %s, needed for %s\n",
|
continue;
|
||||||
rela->sym->name,
|
|
||||||
sec->base->name);
|
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* We have a patch to a module which references
|
* We have a patch to a module which references
|
||||||
|
Loading…
Reference in New Issue
Block a user