mirror of https://github.com/dynup/kpatch
create-diff-object: error on unsupported rela in symbol conversion
Error out if an unsupported rela is encountered. This is more robust than just ignoring it. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
This commit is contained in:
parent
3f8e1062cc
commit
bf212f7750
|
@ -1588,7 +1588,7 @@ static void kpatch_replace_sections_syms(struct kpatch_elf *kelf)
|
||||||
(long)relasec->base->data->d_buf -
|
(long)relasec->base->data->d_buf -
|
||||||
rela->offset);
|
rela->offset);
|
||||||
} else
|
} else
|
||||||
continue;
|
ERROR("unhandled rela type %d", rela->type);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ERROR("unsupported arch");
|
ERROR("unsupported arch");
|
||||||
|
|
Loading…
Reference in New Issue