mirror of https://github.com/dynup/kpatch
Merge pull request #1281 from dobsonj/issue1280
create-diff-object: add support for .return_sites section (x86)
This commit is contained in:
commit
6992acf9c2
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue