Skip to content

Commit

Permalink
kpatch/LoongArch: skip section .rela.orc_unwind_ip
Browse files Browse the repository at this point in the history
Fix error: "changed section .rela.orc_unwind_ip not selected for
inclusion". This section is about arch-specific differences on
LoongArch, which is generated by LoongArch gcc.

Co-developed-by: zhanghongchen <zhanghongchen@loongson.cn>
Signed-off-by: George Guo <guodongtai@kylinos.cn>
  • Loading branch information
georgejguo committed Dec 13, 2024
1 parent ace5550 commit 695b74b
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 @@ -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) {
Expand Down

0 comments on commit 695b74b

Please sign in to comment.