Skip to content

Commit

Permalink
skip changes to .init.text, don't error out
Browse files Browse the repository at this point in the history
  • Loading branch information
snajpa committed Mar 8, 2024
1 parent 1809b50 commit e6cafeb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kpatch-build/create-diff-object.c
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,10 @@ static void kpatch_replace_sections_syms(struct kpatch_elf *kelf)

if (!found && !is_string_literal_section(rela->sym->sec) &&
strncmp(rela->sym->name, ".rodata", 7)) {
if (strncmp(rela->sym->name, ".init.text", 10) == 0)
log_normal("%s+0x%x: can't find replacement symbol for %s+%ld reference, skipping",
continue;
}
ERROR("%s+0x%x: can't find replacement symbol for %s+%ld reference",
relasec->base->name, rela->offset, rela->sym->name, rela->addend);
}
Expand Down

0 comments on commit e6cafeb

Please sign in to comment.