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:
Josh Poimboeuf 2022-05-11 14:38:18 -07:00
parent 3f8e1062cc
commit bf212f7750
1 changed files with 1 additions and 1 deletions

View File

@ -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");