Skip to content

Commit a4d09dd

Browse files
Peter Zijlstraingomolnar
authored andcommitted
objtool: Set insn->func for alternatives
In preparation of function attributes, we need each instruction to have a valid link back to its function. Therefore make sure we set the function association for alternative instruction sequences; they are, after all, still part of the function. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 40ea972 commit a4d09dd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/objtool/check.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ static int handle_group_alt(struct objtool_file *file,
695695
last_new_insn = insn;
696696

697697
insn->ignore = orig_insn->ignore_alts;
698+
insn->func = orig_insn->func;
698699

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

0 commit comments

Comments
 (0)