mirror of
https://github.com/dynup/kpatch
synced 2025-04-11 03:31:20 +00:00
create-diff-object: ignore clang's .llvm_addrsig sections
Signed-off-by: Pete Swain <swine@google.com> Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com> [subject line]
This commit is contained in:
parent
5f6c5965f1
commit
3704057244
@ -2717,7 +2717,8 @@ static void kpatch_mark_ignored_sections(struct kpatch_elf *kelf)
|
||||
/* Ignore any discarded sections */
|
||||
list_for_each_entry(sec, &kelf->sections, list) {
|
||||
if (!strncmp(sec->name, ".discard", 8) ||
|
||||
!strncmp(sec->name, ".rela.discard", 13))
|
||||
!strncmp(sec->name, ".rela.discard", 13) ||
|
||||
!strncmp(sec->name, ".llvm_addrsig", 13))
|
||||
sec->ignore = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user