create-diff-object: add rela_insn() error check

Error out if the insn can't be found.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
This commit is contained in:
Josh Poimboeuf 2022-05-11 15:00:24 -07:00
parent 6b1895a6b7
commit bec6488af6
1 changed files with 3 additions and 0 deletions

View File

@ -1499,6 +1499,9 @@ static void rela_insn(const struct section *sec, const struct rela *rela,
rela_addr < insn_addr + insn->length)
return;
}
ERROR("can't find instruction for rela at %s+0x%x",
sec->name, rela->offset);
}
static bool is_callback_section(struct section *sec) {