mirror of
https://github.com/dynup/kpatch
synced 2024-12-25 23:02:02 +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))
|
||||
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,
|
||||
&result))
|
||||
ERROR("lookup_global_symbol failed for %s, needed for %s\n",
|
||||
rela->sym->name,
|
||||
sec->base->name);
|
||||
continue;
|
||||
} else {
|
||||
/*
|
||||
* We have a patch to a module which references
|
||||
|
Loading…
Reference in New Issue
Block a user