Skip to content

Commit efcf2ad

Browse files
authored
Merge pull request #1349 from joe-lawrence/ppc64le-ftr-sections
kpatch-build: skip mangling for powerpc cpu feature relocations
2 parents 960ceb2 + bcebb52 commit efcf2ad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

kpatch-build/create-diff-object.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,8 @@ static void kpatch_replace_sections_syms(struct kpatch_elf *kelf)
15751575
!strcmp(rela->sym->name, ".fixup") ||
15761576
!strcmp(rela->sym->name, ".altinstr_replacement") ||
15771577
!strcmp(rela->sym->name, ".altinstr_aux") ||
1578-
!strcmp(rela->sym->name, ".text..refcount"))
1578+
!strcmp(rela->sym->name, ".text..refcount") ||
1579+
!strncmp(rela->sym->name, "__ftr_alt_", 10))
15791580
continue;
15801581

15811582
/*

0 commit comments

Comments
 (0)