Merge pull request #390 from jpoimboe/inter-object-call

support for calling a new function in another object
This commit is contained in:
Seth Jennings 2014-09-02 11:08:55 -05:00
commit d0606ae91d

View File

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