diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index f43154b6d..360441111 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -579,7 +579,9 @@ static void kpatch_compare_correlated_section(struct section *sec) } if (sec1->sh.sh_size != sec2->sh.sh_size || - sec1->data->d_size != sec2->data->d_size) { + sec1->data->d_size != sec2->data->d_size || + (sec1->rela && !sec2->rela) || + (sec2->rela && !sec1->rela)) { sec->status = CHANGED; goto out; }