From bc2d5aa815926b256a591d2277802a9326eca4ab Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Wed, 8 Nov 2017 12:17:32 -0600 Subject: [PATCH] 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 --- kpatch-build/create-diff-object.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index 4f677fe..b2d3173 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -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);