Lines Matching refs:me

64 		me->name, strtab + sym->st_name, (unsigned long)val, bits); \
81 static inline int in_init(struct module *me, void *loc) in in_init() argument
83 return (loc >= me->init_layout.base && in in_init()
84 loc <= (me->init_layout.base + me->init_layout.size)); in in_init()
87 static inline int in_core(struct module *me, void *loc) in in_core() argument
89 return (loc >= me->core_layout.base && in in_core()
90 loc <= (me->core_layout.base + me->core_layout.size)); in in_core()
93 static inline int in_local(struct module *me, void *loc) in in_local() argument
95 return in_init(me, loc) || in_core(me, loc); in in_local()
301 struct module *me) in module_frob_arch_sections() argument
306 len = hdr->e_shnum * sizeof(me->arch.section[0]); in module_frob_arch_sections()
307 me->arch.section = kzalloc(len, GFP_KERNEL); in module_frob_arch_sections()
308 if (!me->arch.section) in module_frob_arch_sections()
318 me->arch.unwind_section = i; in module_frob_arch_sections()
343 WARN_ON(me->arch.section[s].stub_entries); in module_frob_arch_sections()
346 me->arch.section[s].stub_entries += count; in module_frob_arch_sections()
350 me->core_layout.size = ALIGN(me->core_layout.size, 16); in module_frob_arch_sections()
351 me->arch.got_offset = me->core_layout.size; in module_frob_arch_sections()
352 me->core_layout.size += gots * sizeof(struct got_entry); in module_frob_arch_sections()
354 me->core_layout.size = ALIGN(me->core_layout.size, 16); in module_frob_arch_sections()
355 me->arch.fdesc_offset = me->core_layout.size; in module_frob_arch_sections()
356 me->core_layout.size += fdescs * sizeof(Elf_Fdesc); in module_frob_arch_sections()
358 me->arch.got_max = gots; in module_frob_arch_sections()
359 me->arch.fdesc_max = fdescs; in module_frob_arch_sections()
365 static Elf64_Word get_got(struct module *me, unsigned long value, long addend) in get_got() argument
374 got = me->core_layout.base + me->arch.got_offset; in get_got()
379 BUG_ON(++me->arch.got_count > me->arch.got_max); in get_got()
390 static Elf_Addr get_fdesc(struct module *me, unsigned long value) in get_fdesc() argument
392 Elf_Fdesc *fdesc = me->core_layout.base + me->arch.fdesc_offset; in get_fdesc()
395 printk(KERN_ERR "%s: zero OPD requested!\n", me->name); in get_fdesc()
406 BUG_ON(++me->arch.fdesc_count > me->arch.fdesc_max); in get_fdesc()
410 fdesc->gp = (Elf_Addr)me->core_layout.base + me->arch.got_offset; in get_fdesc()
421 static Elf_Addr get_stub(struct module *me, unsigned long value, long addend, in get_stub() argument
428 if (!me->arch.section[targetsec].stub_offset) { in get_stub()
429 loc0 -= (me->arch.section[targetsec].stub_entries + 1) * in get_stub()
433 me->arch.section[targetsec].stub_offset = loc0; in get_stub()
437 stub = (void *) me->arch.section[targetsec].stub_offset; in get_stub()
438 me->arch.section[targetsec].stub_offset += sizeof(struct stub_entry); in get_stub()
441 BUG_ON(0 == me->arch.section[targetsec].stub_entries--); in get_stub()
479 d = get_got(me, value, addend); in get_stub()
522 struct module *me) in apply_relocate_add() argument
549 me->name, strtab + sym->st_name); in apply_relocate_add()
625 val = get_stub(me, sym->st_value, addend, in apply_relocate_add()
640 val = get_stub(me, sym->st_value, addend, in apply_relocate_add()
654 me->name, ELF32_R_TYPE(rel[i].r_info)); in apply_relocate_add()
667 struct module *me) in apply_relocate_add() argument
693 me->name, strtab + sym->st_name); in apply_relocate_add()
721 val = get_got(me, val, addend); in apply_relocate_add()
731 val = get_got(me, val, addend); in apply_relocate_add()
745 if (in_local(me, (void *)val)) { in apply_relocate_add()
754 val = get_stub(me, sym->st_value, in apply_relocate_add()
766 val = get_stub(me, val, addend, ELF_STUB_MILLI, in apply_relocate_add()
769 val = get_stub(me, val, addend, ELF_STUB_GOT, in apply_relocate_add()
804 if(in_local(me, (void *)(val + addend))) { in apply_relocate_add()
805 *loc64 = get_fdesc(me, val+addend); in apply_relocate_add()
822 me->name, ELF64_R_TYPE(rel[i].r_info)); in apply_relocate_add()
831 register_unwind_table(struct module *me, in register_unwind_table() argument
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->core_layout.base + 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()
850 deregister_unwind_table(struct module *me) in deregister_unwind_table() argument
852 if (me->arch.unwind) in deregister_unwind_table()
853 unwind_table_remove(me->arch.unwind); in deregister_unwind_table()
858 struct module *me) in module_finalize() argument
872 entry = (Elf_Fdesc *)me->init; in module_finalize()
880 me->arch.got_count, me->arch.got_max, in module_finalize()
881 me->arch.fdesc_count, me->arch.fdesc_max); in module_finalize()
884 register_unwind_table(me, sechdrs); in module_finalize()
903 me->name, strtab, symhdr); in module_finalize()
905 if(me->arch.got_count > MAX_GOTS) { in module_finalize()
907 me->name, me->arch.got_count, MAX_GOTS); in module_finalize()
911 kfree(me->arch.section); in module_finalize()
912 me->arch.section = NULL; in module_finalize()
947 apply_alternatives(aseg, aseg + s->sh_size, me->name); in module_finalize()
959 s - sechdrs, me); in module_finalize()
963 s - sechdrs, me); in module_finalize()