From a8ebc7229abe00ccf77d287c1fff8c25743512f8 Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Mon, 17 May 2021 01:17:03 +0200 Subject: scheck: ignore OP_NOP & friends Some instructions have no effects and so can just be ignored here. Signed-off-by: Luc Van Oostenryck --- scheck.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scheck.c b/scheck.c index c830f56a..d3ebddd6 100644 --- a/scheck.c +++ b/scheck.c @@ -313,6 +313,11 @@ static bool check_function(struct entrypoint *ep) break; case OP_RET: goto out; + case OP_INLINED_CALL: + case OP_DEATHNOTE: + case OP_NOP: + case OP_CONTEXT: + continue; default: fprintf(stderr, "unsupported insn: %s\n", show_instruction(insn)); goto out; -- cgit 1.2.3-korg