diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 4c17e7f0695ff..56213c3182249 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -2084,7 +2084,7 @@ static int add_jump_table(struct objtool_file *file, struct instruction *insn, * which point to the end of the function. Ignore them. */ if (reloc->sym->sec == pfunc->sec && - reloc_addend(reloc) == pfunc->offset + pfunc->len) + offset == pfunc->offset + pfunc->len) goto next; dest_insn = find_insn(file, reloc->sym->sec, offset);