[PATCH 3/6] objtool: Set insn->func for alternatives

From: Peter Zijlstra
Date: Mon Feb 25 2019 - 07:53:19 EST


Make sure we set the function association for alternative function
sequences; they are after all still part of the function.

Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
---
tools/objtool/check.c | 1 +
1 file changed, 1 insertion(+)

--- a/tools/objtool/check.c
+++ b/tools/objtool/check.c
@@ -695,6 +695,7 @@ static int handle_group_alt(struct objto
last_new_insn = insn;

insn->ignore = orig_insn->ignore_alts;
+ insn->func = orig_insn->func;

if (insn->type != INSN_JUMP_CONDITIONAL &&
insn->type != INSN_JUMP_UNCONDITIONAL)