Lines Matching refs:me

60 static void check_rela(Elf_Rela *rela, struct module *me)  in check_rela()  argument
64 info = me->arch.syminfo + ELF_R_SYM (rela->r_info); in check_rela()
79 info->got_offset = me->arch.got_size; in check_rela()
80 me->arch.got_size += sizeof(void*); in check_rela()
91 info->plt_offset = me->arch.plt_size; in check_rela()
92 me->arch.plt_size += PLT_ENTRY_SIZE; in check_rela()
110 char *secstrings, struct module *me) in module_frob_arch_sections() argument
127 printk(KERN_ERR "module %s: no symbol table\n", me->name); in module_frob_arch_sections()
132 me->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections()
133 me->arch.syminfo = vmalloc(array_size(sizeof(struct mod_arch_syminfo), in module_frob_arch_sections()
134 me->arch.nsyms)); in module_frob_arch_sections()
135 if (!me->arch.syminfo) in module_frob_arch_sections()
139 for (i = 0; i < me->arch.nsyms; i++) { in module_frob_arch_sections()
145 me->arch.syminfo[i].got_offset = -1UL; in module_frob_arch_sections()
146 me->arch.syminfo[i].plt_offset = -1UL; in module_frob_arch_sections()
147 me->arch.syminfo[i].got_initialized = 0; in module_frob_arch_sections()
148 me->arch.syminfo[i].plt_initialized = 0; in module_frob_arch_sections()
152 me->arch.got_size = me->arch.plt_size = 0; in module_frob_arch_sections()
159 check_rela(rela + j, me); in module_frob_arch_sections()
164 me->core_layout.size = ALIGN(me->core_layout.size, 4); in module_frob_arch_sections()
165 me->arch.got_offset = me->core_layout.size; in module_frob_arch_sections()
166 me->core_layout.size += me->arch.got_size; in module_frob_arch_sections()
167 me->arch.plt_offset = me->core_layout.size; in module_frob_arch_sections()
168 if (me->arch.plt_size) { in module_frob_arch_sections()
170 me->arch.plt_size += PLT_ENTRY_SIZE; in module_frob_arch_sections()
171 me->core_layout.size += me->arch.plt_size; in module_frob_arch_sections()
216 const char *strtab, struct module *me) in apply_rela() argument
229 info = me->arch.syminfo + r_sym; in apply_rela()
288 gotent = me->core_layout.base + me->arch.got_offset + in apply_rela()
311 val += (Elf_Addr) me->core_layout.base - loc; in apply_rela()
324 ip = me->core_layout.base + me->arch.plt_offset + in apply_rela()
330 ij = me->core_layout.base + in apply_rela()
331 me->arch.plt_offset + in apply_rela()
332 me->arch.plt_size - PLT_ENTRY_SIZE; in apply_rela()
347 val = me->arch.plt_offset - me->arch.got_offset + in apply_rela()
354 val = (Elf_Addr) me->core_layout.base + in apply_rela()
355 me->arch.plt_offset + in apply_rela()
376 ((Elf_Addr) me->core_layout.base + me->arch.got_offset); in apply_rela()
386 val = (Elf_Addr) me->core_layout.base + me->arch.got_offset + in apply_rela()
402 me->name, r_type); in apply_rela()
408 me->name, strtab + symtab[r_sym].st_name, in apply_rela()
417 struct module *me) in apply_relocate_add() argument
433 rc = apply_rela(rela, base, symtab, strtab, me); in apply_relocate_add()
442 struct module *me) in module_finalize() argument
449 !nospec_disable && me->arch.plt_size) { in module_finalize()
452 ij = me->core_layout.base + me->arch.plt_offset + in module_finalize()
453 me->arch.plt_size - PLT_ENTRY_SIZE; in module_finalize()
483 jump_label_apply_nops(me); in module_finalize()