Skip to content

Commit 85781b7

Browse files
swinejoe-lawrence
authored andcommitted
create-diff-object: ignore .llvm.* sections
Clang FDO adds a new, ignorable ELF section, .llvm.call-graph-profile Generalize to ignore all .llvm.* Signed-off-by: Pete Swain <[email protected]> Signed-off-by: Joe Lawrence <[email protected]> [subject line]
1 parent 3704057 commit 85781b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kpatch-build/create-diff-object.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2718,7 +2718,8 @@ static void kpatch_mark_ignored_sections(struct kpatch_elf *kelf)
27182718
list_for_each_entry(sec, &kelf->sections, list) {
27192719
if (!strncmp(sec->name, ".discard", 8) ||
27202720
!strncmp(sec->name, ".rela.discard", 13) ||
2721-
!strncmp(sec->name, ".llvm_addrsig", 13))
2721+
!strncmp(sec->name, ".llvm_addrsig", 13) ||
2722+
!strncmp(sec->name, ".llvm.", 6))
27222723
sec->ignore = 1;
27232724
}
27242725

0 commit comments

Comments
 (0)