Lines Matching refs:me
61 static void check_rela(Elf_Rela *rela, struct module *me) in check_rela() argument
65 info = me->arch.syminfo + ELF_R_SYM (rela->r_info); in check_rela()
80 info->got_offset = me->arch.got_size; in check_rela()
81 me->arch.got_size += sizeof(void*); in check_rela()
92 info->plt_offset = me->arch.plt_size; in check_rela()
93 me->arch.plt_size += PLT_ENTRY_SIZE; in check_rela()
111 char *secstrings, struct module *me) in module_frob_arch_sections() argument
128 printk(KERN_ERR "module %s: no symbol table\n", me->name); in module_frob_arch_sections()
133 me->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections()
134 me->arch.syminfo = vmalloc(array_size(sizeof(struct mod_arch_syminfo), in module_frob_arch_sections()
135 me->arch.nsyms)); in module_frob_arch_sections()
136 if (!me->arch.syminfo) in module_frob_arch_sections()
140 for (i = 0; i < me->arch.nsyms; i++) { in module_frob_arch_sections()
146 me->arch.syminfo[i].got_offset = -1UL; in module_frob_arch_sections()
147 me->arch.syminfo[i].plt_offset = -1UL; in module_frob_arch_sections()
148 me->arch.syminfo[i].got_initialized = 0; in module_frob_arch_sections()
149 me->arch.syminfo[i].plt_initialized = 0; in module_frob_arch_sections()
153 me->arch.got_size = me->arch.plt_size = 0; in module_frob_arch_sections()
160 check_rela(rela + j, me); in module_frob_arch_sections()
165 me->core_layout.size = ALIGN(me->core_layout.size, 4); in module_frob_arch_sections()
166 me->arch.got_offset = me->core_layout.size; in module_frob_arch_sections()
167 me->core_layout.size += me->arch.got_size; in module_frob_arch_sections()
168 me->arch.plt_offset = me->core_layout.size; in module_frob_arch_sections()
169 if (me->arch.plt_size) { in module_frob_arch_sections()
171 me->arch.plt_size += PLT_ENTRY_SIZE; in module_frob_arch_sections()
172 me->core_layout.size += me->arch.plt_size; in module_frob_arch_sections()
225 const char *strtab, struct module *me, in apply_rela() argument
239 info = me->arch.syminfo + r_sym; in apply_rela()
296 Elf_Addr *gotent = me->core_layout.base + in apply_rela()
297 me->arch.got_offset + in apply_rela()
321 val += (Elf_Addr) me->core_layout.base - loc; in apply_rela()
334 unsigned int *ip = me->core_layout.base + in apply_rela()
335 me->arch.plt_offset + in apply_rela()
342 ij = me->core_layout.base + in apply_rela()
343 me->arch.plt_offset + in apply_rela()
344 me->arch.plt_size - PLT_ENTRY_SIZE; in apply_rela()
361 val = me->arch.plt_offset - me->arch.got_offset + in apply_rela()
368 val = (Elf_Addr) me->core_layout.base + in apply_rela()
369 me->arch.plt_offset + in apply_rela()
390 ((Elf_Addr) me->core_layout.base + me->arch.got_offset); in apply_rela()
400 val = (Elf_Addr) me->core_layout.base + me->arch.got_offset + in apply_rela()
416 me->name, r_type); in apply_rela()
422 me->name, strtab + symtab[r_sym].st_name, in apply_rela()
431 struct module *me, in __apply_relocate_add() argument
448 rc = apply_rela(rela, base, symtab, strtab, me, write); in __apply_relocate_add()
457 struct module *me) in apply_relocate_add() argument
459 bool early = me->state == MODULE_STATE_UNFORMED; in apply_relocate_add()
465 return __apply_relocate_add(sechdrs, strtab, symindex, relsec, me, in apply_relocate_add()
471 struct module *me) in module_finalize() argument
478 !nospec_disable && me->arch.plt_size) { in module_finalize()
481 ij = me->core_layout.base + me->arch.plt_offset + in module_finalize()
482 me->arch.plt_size - PLT_ENTRY_SIZE; in module_finalize()
512 jump_label_apply_nops(me); in module_finalize()