Skip to content

Commit 018676a

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 a33aec9 commit 018676a

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

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

0 commit comments

Comments
 (0)