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 <[email protected]>
Signed-off-by: George Guo <[email protected]>
  • Loading branch information
georgejguo committed Dec 13, 2024
1 parent ace5550 commit dcf1188
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kpatch-build/create-diff-object.c
Original file line number Diff line number Diff line change
Expand Up @@ -2877,6 +2877,11 @@ static void kpatch_mark_ignored_sections(struct kpatch_elf *kelf)
!strcmp(sec->name, "__patchable_function_entries"))
sec->ignore = 1;
}

if (kelf->arch == LOONGARCH64) {
if(strncmp(sec->name,".rela.orc_unwind_ip",19))
sec->ignore = 1;
}
}

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

0 comments on commit dcf1188

Please sign in to comment.