mirror of https://github.com/dynup/kpatch
Merge pull request #499 from zhouchengming1/master
bugfix: correlate the rela sections of bundled static variables
This commit is contained in:
commit
efaf98036a
|
@ -1170,6 +1170,11 @@ void kpatch_correlate_static_local_variables(struct kpatch_elf *base,
|
|||
if (bundled) {
|
||||
sym->sec->twin = basesym->sec;
|
||||
basesym->sec->twin = sym->sec;
|
||||
|
||||
if (sym->sec->rela && basesym->sec->rela) {
|
||||
sym->sec->rela->twin = basesym->sec->rela;
|
||||
basesym->sec->rela->twin = sym->sec->rela;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue