mirror of https://github.com/dynup/kpatch
create-diff-object: allow correlated symbols to have different st_values
On ppc64le, adding a printk to total_mapping_size() caused it to change from non-localentry to localentry, presumably because it was no longer a leaf function. With GCC 6, a localentry function is offset by 8 in the section, so different st_values are ok. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
This commit is contained in:
parent
e598d9628f
commit
bc2d5aa815
|
@ -544,7 +544,6 @@ static void kpatch_compare_correlated_symbol(struct symbol *sym)
|
|||
struct symbol *sym1 = sym, *sym2 = sym->twin;
|
||||
|
||||
if (sym1->sym.st_info != sym2->sym.st_info ||
|
||||
sym1->sym.st_other != sym2->sym.st_other ||
|
||||
(sym1->sec && !sym2->sec) ||
|
||||
(sym2->sec && !sym1->sec))
|
||||
DIFF_FATAL("symbol info mismatch: %s", sym1->name);
|
||||
|
|
Loading…
Reference in New Issue