Skip to content

Commit 7ec1ed6

Browse files
authored
Merge pull request #1303 from anatasluo/temp
kpatch-build: strengthen conditions for changed sections
2 parents e974224 + d46fea9 commit 7ec1ed6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kpatch-build/create-diff-object.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,9 @@ static void kpatch_compare_correlated_section(struct section *sec)
579579
}
580580

581581
if (sec1->sh.sh_size != sec2->sh.sh_size ||
582-
sec1->data->d_size != sec2->data->d_size) {
582+
sec1->data->d_size != sec2->data->d_size ||
583+
(sec1->rela && !sec2->rela) ||
584+
(sec2->rela && !sec1->rela)) {
583585
sec->status = CHANGED;
584586
goto out;
585587
}

0 commit comments

Comments
 (0)