Merge pull request #1281 from dobsonj/issue1280

create-diff-object: add support for .return_sites section (x86)
This commit is contained in:
Joe Lawrence 2022-07-21 10:30:59 -04:00 committed by GitHub
commit 6992acf9c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,