Skip to contentSkip to conversation

objtool fix

GIT PULL Ingo Molnar 1 participant 1 message Oct 28, 2016 objtool

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest core-urgent-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-urgent-for-linus

# HEAD: 56fb2d6eb63acd48b50437b415b6f7d2fcffe75d objtool: Fix rare switch jump table pattern detection

One more objtool fixlet for GCC6 code generation patterns.

Thanks,

Ingo

------------------>
Josh Poimboeuf (1):
objtool: Fix rare switch jump table pattern detection

 tools/objtool/builtin-check.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/objtool/builtin-check.c +1 -1
index 4490601a9235..e8a1f699058a 100644
@@ -754,7 +754,7 @@ static struct rela *find_switch_table(struct objtool_file *file,
 		if (insn->type == INSN_JUMP_UNCONDITIONAL &&
 		    insn->jump_dest &&
 		    (insn->jump_dest->offset <= insn->offset ||
-		     insn->jump_dest->offset >= orig_insn->offset))
+		     insn->jump_dest->offset > orig_insn->offset))
 		    break;
 
 		text_rela = find_rela_by_dest_range(insn->sec, insn->offset,