create-diff-object: add support for .return_sites section (x86)

This commit is contained in:
Jonathan Dobson 2022-07-16 15:46:54 -06:00
parent dc7e5cb03d
commit 33368a88cd
1 changed files with 10 additions and 0 deletions

View File

@ -2090,6 +2090,11 @@ static int retpoline_sites_group_size(struct kpatch_elf *kelf, int offset)
return 4;
}
static int return_sites_group_size(struct kpatch_elf *kelf, int offset)
{
return 4;
}
static int fixup_entry_group_size(struct kpatch_elf *kelf, int offset)
{
static int size = 0;
@ -2227,6 +2232,11 @@ static struct special_section special_sections[] = {
.arch = X86_64,
.group_size = retpoline_sites_group_size,
},
{
.name = ".return_sites",
.arch = X86_64,
.group_size = return_sites_group_size,
},
{
.name = "__ftr_fixup",
.arch = PPC64,