Skip to content

Commit

Permalink
Merge pull request #1303 from anatasluo/temp
Browse files Browse the repository at this point in the history
kpatch-build: strengthen conditions for changed sections
  • Loading branch information
joe-lawrence committed Sep 23, 2022
2 parents e974224 + d46fea9 commit 7ec1ed6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kpatch-build/create-diff-object.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7ec1ed6

Please sign in to comment.