Commit 76e1851a authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

objtool/x86: Add UDB support



Per commit 85a2d4a8 ("x86,ibt: Use UDB instead of 0xEA"), make
sure objtool also recognises UDB as a #UD instruction.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarAlexandre Chartre <alexandre.chartre@oracle.com>
parent c5df4e1a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -683,6 +683,10 @@ int arch_decode_instruction(struct objtool_file *file, const struct section *sec
		insn->type = INSN_SYSRET;
		break;

	case 0xd6: /* udb */
		insn->type = INSN_BUG;
		break;

	case 0xe0: /* loopne */
	case 0xe1: /* loope */
	case 0xe2: /* loop */