Merge pull request #1247 from markusboehme/fix/retpoline-sites

create-diff-object: add support for .retpoline_sites section
This commit is contained in:
Joe Lawrence 2022-01-21 16:05:21 -05:00 committed by GitHub
commit aa33ee7dff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -2083,6 +2083,11 @@ static int static_call_sites_group_size(struct kpatch_elf *kelf, int offset)
return size;
}
static int retpoline_sites_group_size(struct kpatch_elf *kelf, int offset)
{
return 4;
}
#endif
#ifdef __powerpc64__
static int fixup_entry_group_size(struct kpatch_elf *kelf, int offset)
@ -2199,6 +2204,10 @@ static struct special_section special_sections[] = {
.name = ".static_call_sites",
.group_size = static_call_sites_group_size,
},
{
.name = ".retpoline_sites",
.group_size = retpoline_sites_group_size,
},
#endif
#ifdef __powerpc64__
{