mirror of https://github.com/dynup/kpatch
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:
parent
6b1895a6b7
commit
bec6488af6
|
@ -1499,6 +1499,9 @@ static void rela_insn(const struct section *sec, const struct rela *rela,
|
||||||
rela_addr < insn_addr + insn->length)
|
rela_addr < insn_addr + insn->length)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ERROR("can't find instruction for rela at %s+0x%x",
|
||||||
|
sec->name, rela->offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool is_callback_section(struct section *sec) {
|
static bool is_callback_section(struct section *sec) {
|
||||||
|
|
Loading…
Reference in New Issue