mirror of https://github.com/dynup/kpatch
Merge pull request #1247 from markusboehme/fix/retpoline-sites
create-diff-object: add support for .retpoline_sites section
This commit is contained in:
commit
aa33ee7dff
|
@ -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__
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue