Skip to content

Commit e4ffb21

Browse files
georgejguogeorge
authored andcommitted
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. Signed-off-by: George Guo <[email protected]>
1 parent 24f5977 commit e4ffb21

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
@@ -3055,6 +3055,11 @@ static void kpatch_mark_ignored_sections(struct kpatch_elf *kelf)
30553055
!strcmp(sec->name, "__patchable_function_entries"))
30563056
sec->ignore = 1;
30573057
}
3058+
3059+
if (kelf->arch == LOONGARCH64) {
3060+
if(!strncmp(sec->name,".rela.orc_unwind_ip",19))
3061+
sec->ignore = 1;
3062+
}
30583063
}
30593064

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

0 commit comments

Comments
 (0)