Skip to content

Commit d0606ae

Browse files
committed
Merge pull request #390 from jpoimboe/inter-object-call
support for calling a new function in another object
2 parents 21c684a + f257de7 commit d0606ae

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

kpatch-build/create-diff-object.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,11 +2126,15 @@ void kpatch_create_dynamic_rela_sections(struct kpatch_elf *kelf,
21262126
*/
21272127
if (lookup_is_exported_symbol(table, rela->sym->name))
21282128
continue;
2129+
2130+
/*
2131+
* If lookup_global_symbol() fails, assume the
2132+
* symbol is defined in another object in the
2133+
* patch module.
2134+
*/
21292135
if (lookup_global_symbol(table, rela->sym->name,
21302136
&result))
2131-
ERROR("lookup_global_symbol failed for %s, needed for %s\n",
2132-
rela->sym->name,
2133-
sec->base->name);
2137+
continue;
21342138
} else {
21352139
/*
21362140
* We have a patch to a module which references

0 commit comments

Comments
 (0)