Lines Matching refs:me
64 me->name, strtab + sym->st_name, (unsigned long)val, bits); \
282 struct module *me) in module_frob_arch_sections() argument
288 len = hdr->e_shnum * sizeof(me->arch.section[0]); in module_frob_arch_sections()
289 me->arch.section = kzalloc(len, GFP_KERNEL); in module_frob_arch_sections()
290 if (!me->arch.section) in module_frob_arch_sections()
300 me->arch.unwind_section = i; in module_frob_arch_sections()
325 WARN_ON(me->arch.section[s].stub_entries); in module_frob_arch_sections()
328 me->arch.section[s].stub_entries += count; in module_frob_arch_sections()
331 mod_mem = &me->mem[MOD_TEXT]; in module_frob_arch_sections()
334 me->arch.got_offset = mod_mem->size; in module_frob_arch_sections()
338 me->arch.fdesc_offset = mod_mem->size; in module_frob_arch_sections()
341 me->arch.got_max = gots; in module_frob_arch_sections()
342 me->arch.fdesc_max = fdescs; in module_frob_arch_sections()
348 static Elf64_Word get_got(struct module *me, unsigned long value, long addend) in get_got() argument
357 got = me->mem[MOD_TEXT].base + me->arch.got_offset; in get_got()
362 BUG_ON(++me->arch.got_count > me->arch.got_max); in get_got()
373 static Elf_Addr get_fdesc(struct module *me, unsigned long value) in get_fdesc() argument
375 Elf_Fdesc *fdesc = me->mem[MOD_TEXT].base + me->arch.fdesc_offset; in get_fdesc()
378 printk(KERN_ERR "%s: zero OPD requested!\n", me->name); in get_fdesc()
389 BUG_ON(++me->arch.fdesc_count > me->arch.fdesc_max); in get_fdesc()
393 fdesc->gp = (Elf_Addr)me->mem[MOD_TEXT].base + me->arch.got_offset; in get_fdesc()
404 static Elf_Addr get_stub(struct module *me, unsigned long value, long addend, in get_stub() argument
411 if (!me->arch.section[targetsec].stub_offset) { in get_stub()
412 loc0 -= (me->arch.section[targetsec].stub_entries + 1) * in get_stub()
416 me->arch.section[targetsec].stub_offset = loc0; in get_stub()
420 stub = (void *) me->arch.section[targetsec].stub_offset; in get_stub()
421 me->arch.section[targetsec].stub_offset += sizeof(struct stub_entry); in get_stub()
424 BUG_ON(0 == me->arch.section[targetsec].stub_entries--); in get_stub()
462 d = get_got(me, value, addend); in get_stub()
505 struct module *me) in apply_relocate_add() argument
532 me->name, strtab + sym->st_name); in apply_relocate_add()
608 val = get_stub(me, sym->st_value, addend, in apply_relocate_add()
623 val = get_stub(me, sym->st_value, addend, in apply_relocate_add()
637 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
650 struct module *me) in apply_relocate_add() argument
676 me->name, strtab + sym->st_name); in apply_relocate_add()
704 val = get_got(me, val, addend); in apply_relocate_add()
714 val = get_got(me, val, addend); in apply_relocate_add()
728 if (within_module(val, me)) { in apply_relocate_add()
737 val = get_stub(me, sym->st_value, in apply_relocate_add()
749 val = get_stub(me, val, addend, ELF_STUB_MILLI, in apply_relocate_add()
752 val = get_stub(me, val, addend, ELF_STUB_GOT, in apply_relocate_add()
787 if (within_module(val + addend, me)) { in apply_relocate_add()
788 *loc64 = get_fdesc(me, val+addend); in apply_relocate_add()
805 me->name, ELF64_R_TYPE(rel[i].r_info)); in apply_relocate_add()
814 register_unwind_table(struct module *me, in register_unwind_table() argument
820 if (!me->arch.unwind_section) in register_unwind_table()
823 table = (unsigned char *)sechdrs[me->arch.unwind_section].sh_addr; in register_unwind_table()
824 end = table + sechdrs[me->arch.unwind_section].sh_size; in register_unwind_table()
825 gp = (Elf_Addr)me->mem[MOD_TEXT].base + me->arch.got_offset; in register_unwind_table()
828 me->arch.unwind_section, table, end, gp); in register_unwind_table()
829 me->arch.unwind = unwind_table_add(me->name, 0, gp, table, end); in register_unwind_table()
833 deregister_unwind_table(struct module *me) in deregister_unwind_table() argument
835 if (me->arch.unwind) in deregister_unwind_table()
836 unwind_table_remove(me->arch.unwind); in deregister_unwind_table()
841 struct module *me) in module_finalize() argument
855 entry = (Elf_Fdesc *)me->init; in module_finalize()
863 me->arch.got_count, me->arch.got_max, in module_finalize()
864 me->arch.fdesc_count, me->arch.fdesc_max); in module_finalize()
867 register_unwind_table(me, sechdrs); in module_finalize()
886 me->name, strtab, symhdr); in module_finalize()
888 if(me->arch.got_count > MAX_GOTS) { in module_finalize()
890 me->name, me->arch.got_count, MAX_GOTS); in module_finalize()
894 kfree(me->arch.section); in module_finalize()
895 me->arch.section = NULL; in module_finalize()
930 apply_alternatives(aseg, aseg + s->sh_size, me->name); in module_finalize()
942 s - sechdrs, me); in module_finalize()
946 s - sechdrs, me); in module_finalize()