diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index 716d1fbd..6b9dea5d 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -1725,7 +1725,9 @@ static void kpatch_verify_patchability(struct kpatch_elf *kelf) if (sec->status == CHANGED && !sec->include) { log_normal("changed section %s not selected for inclusion\n", sec->name); - errs++; + /* skip section .rela.orc_unwind_ip which is generated by LoongArch gcc */ + if(strncmp(sec->name,".rela.orc_unwind_ip",19)) + errs++; } if (sec->status != SAME && sec->grouped) {