Lines Matching refs:arch

303 	kfree(mod->arch.section);  in module_arch_freeing_init()
304 mod->arch.section = NULL; in module_arch_freeing_init()
313 return (mod->arch.section[section].stub_entries + 1) in arch_mod_section_prepend()
326 len = hdr->e_shnum * sizeof(me->arch.section[0]); in module_frob_arch_sections()
327 me->arch.section = kzalloc(len, GFP_KERNEL); in module_frob_arch_sections()
328 if (!me->arch.section) in module_frob_arch_sections()
338 me->arch.unwind_section = i; in module_frob_arch_sections()
363 WARN_ON(me->arch.section[s].stub_entries); in module_frob_arch_sections()
366 me->arch.section[s].stub_entries += count; in module_frob_arch_sections()
371 me->arch.got_offset = me->core_size; in module_frob_arch_sections()
375 me->arch.fdesc_offset = me->core_size; in module_frob_arch_sections()
378 me->arch.got_max = gots; in module_frob_arch_sections()
379 me->arch.fdesc_max = fdescs; in module_frob_arch_sections()
394 got = me->module_core + me->arch.got_offset; in get_got()
399 BUG_ON(++me->arch.got_count > me->arch.got_max); in get_got()
412 Elf_Fdesc *fdesc = me->module_core + me->arch.fdesc_offset; in get_fdesc()
426 BUG_ON(++me->arch.fdesc_count > me->arch.fdesc_max); in get_fdesc()
430 fdesc->gp = (Elf_Addr)me->module_core + me->arch.got_offset; in get_fdesc()
448 if (!me->arch.section[targetsec].stub_offset) { in get_stub()
449 loc0 -= (me->arch.section[targetsec].stub_entries + 1) * in get_stub()
453 me->arch.section[targetsec].stub_offset = loc0; in get_stub()
457 stub = (void *) me->arch.section[targetsec].stub_offset; in get_stub()
458 me->arch.section[targetsec].stub_offset += sizeof(struct stub_entry); in get_stub()
461 BUG_ON(0 == me->arch.section[targetsec].stub_entries--); in get_stub()
837 if (!me->arch.unwind_section) in register_unwind_table()
840 table = (unsigned char *)sechdrs[me->arch.unwind_section].sh_addr; in register_unwind_table()
841 end = table + sechdrs[me->arch.unwind_section].sh_size; in register_unwind_table()
842 gp = (Elf_Addr)me->module_core + me->arch.got_offset; in register_unwind_table()
845 me->arch.unwind_section, table, end, gp); in register_unwind_table()
846 me->arch.unwind = unwind_table_add(me->name, 0, gp, table, end); in register_unwind_table()
852 if (me->arch.unwind) in deregister_unwind_table()
853 unwind_table_remove(me->arch.unwind); in deregister_unwind_table()
877 me->arch.got_count, me->arch.got_max, in module_finalize()
878 me->arch.fdesc_count, me->arch.fdesc_max); in module_finalize()
901 if(me->arch.got_count > MAX_GOTS) { in module_finalize()
903 me->name, me->arch.got_count, MAX_GOTS); in module_finalize()
907 kfree(me->arch.section); in module_finalize()
908 me->arch.section = NULL; in module_finalize()