|
|
@@ -914,10 +914,14 @@ module_finalize (const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *mo
|
|
|
void
|
|
|
module_arch_cleanup (struct module *mod)
|
|
|
{
|
|
|
- if (mod->arch.init_unw_table)
|
|
|
+ if (mod->arch.init_unw_table) {
|
|
|
unw_remove_unwind_table(mod->arch.init_unw_table);
|
|
|
- if (mod->arch.core_unw_table)
|
|
|
+ mod->arch.init_unw_table = NULL;
|
|
|
+ }
|
|
|
+ if (mod->arch.core_unw_table) {
|
|
|
unw_remove_unwind_table(mod->arch.core_unw_table);
|
|
|
+ mod->arch.core_unw_table = NULL;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
void *dereference_module_function_descriptor(struct module *mod, void *ptr)
|