Skip to content

Commit 695b74b

Browse files
committed
kpatch/LoongArch: skip section .rela.orc_unwind_ip
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 <[email protected]> Signed-off-by: George Guo <[email protected]>
1 parent ace5550 commit 695b74b

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
@@ -1725,7 +1725,9 @@ static void kpatch_verify_patchability(struct kpatch_elf *kelf)
17251725
if (sec->status == CHANGED && !sec->include) {
17261726
log_normal("changed section %s not selected for inclusion\n",
17271727
sec->name);
1728-
errs++;
1728+
/* skip section .rela.orc_unwind_ip which is generated by LoongArch gcc */
1729+
if(strncmp(sec->name,".rela.orc_unwind_ip",19))
1730+
errs++;
17291731
}
17301732

17311733
if (sec->status != SAME && sec->grouped) {

0 commit comments

Comments
 (0)