Merge pull request #499 from zhouchengming1/master

bugfix: correlate the rela sections of bundled static variables
This commit is contained in:
Seth Jennings 2015-10-14 15:35:49 -05:00
commit efaf98036a
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}
}
}
}