Skip to content

Commit dcf1188

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 dcf1188

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kpatch-build/create-diff-object.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2877,6 +2877,11 @@ static void kpatch_mark_ignored_sections(struct kpatch_elf *kelf)
28772877
!strcmp(sec->name, "__patchable_function_entries"))
28782878
sec->ignore = 1;
28792879
}
2880+
2881+
if (kelf->arch == LOONGARCH64) {
2882+
if(strncmp(sec->name,".rela.orc_unwind_ip",19))
2883+
sec->ignore = 1;
2884+
}
28802885
}
28812886

28822887
sec = find_section_by_name(&kelf->sections, ".kpatch.ignore.sections");

0 commit comments

Comments
 (0)