Lines Matching refs:me

53 static void check_rela(Elf_Rela *rela, struct module *me)  in check_rela()  argument
57 info = me->arch.syminfo + ELF_R_SYM (rela->r_info); in check_rela()
72 info->got_offset = me->arch.got_size; in check_rela()
73 me->arch.got_size += sizeof(void*); in check_rela()
84 info->plt_offset = me->arch.plt_size; in check_rela()
85 me->arch.plt_size += PLT_ENTRY_SIZE; in check_rela()
103 char *secstrings, struct module *me) in module_frob_arch_sections() argument
120 printk(KERN_ERR "module %s: no symbol table\n", me->name); in module_frob_arch_sections()
125 me->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections()
126 me->arch.syminfo = vmalloc(array_size(sizeof(struct mod_arch_syminfo), in module_frob_arch_sections()
127 me->arch.nsyms)); in module_frob_arch_sections()
128 if (!me->arch.syminfo) in module_frob_arch_sections()
132 for (i = 0; i < me->arch.nsyms; i++) { in module_frob_arch_sections()
138 me->arch.syminfo[i].got_offset = -1UL; in module_frob_arch_sections()
139 me->arch.syminfo[i].plt_offset = -1UL; in module_frob_arch_sections()
140 me->arch.syminfo[i].got_initialized = 0; in module_frob_arch_sections()
141 me->arch.syminfo[i].plt_initialized = 0; in module_frob_arch_sections()
145 me->arch.got_size = me->arch.plt_size = 0; in module_frob_arch_sections()
152 check_rela(rela + j, me); in module_frob_arch_sections()
157 me->core_layout.size = ALIGN(me->core_layout.size, 4); in module_frob_arch_sections()
158 me->arch.got_offset = me->core_layout.size; in module_frob_arch_sections()
159 me->core_layout.size += me->arch.got_size; in module_frob_arch_sections()
160 me->arch.plt_offset = me->core_layout.size; in module_frob_arch_sections()
161 if (me->arch.plt_size) { in module_frob_arch_sections()
163 me->arch.plt_size += PLT_ENTRY_SIZE; in module_frob_arch_sections()
164 me->core_layout.size += me->arch.plt_size; in module_frob_arch_sections()
209 const char *strtab, struct module *me) in apply_rela() argument
222 info = me->arch.syminfo + r_sym; in apply_rela()
281 gotent = me->core_layout.base + me->arch.got_offset + in apply_rela()
304 val += (Elf_Addr) me->core_layout.base - loc; in apply_rela()
317 ip = me->core_layout.base + me->arch.plt_offset + in apply_rela()
323 ij = me->core_layout.base + in apply_rela()
324 me->arch.plt_offset + in apply_rela()
325 me->arch.plt_size - PLT_ENTRY_SIZE; in apply_rela()
340 val = me->arch.plt_offset - me->arch.got_offset + in apply_rela()
347 val = (Elf_Addr) me->core_layout.base + in apply_rela()
348 me->arch.plt_offset + in apply_rela()
369 ((Elf_Addr) me->core_layout.base + me->arch.got_offset); in apply_rela()
379 val = (Elf_Addr) me->core_layout.base + me->arch.got_offset + in apply_rela()
395 me->name, r_type); in apply_rela()
401 me->name, strtab + symtab[r_sym].st_name, in apply_rela()
410 struct module *me) in apply_relocate_add() argument
426 rc = apply_rela(rela, base, symtab, strtab, me); in apply_relocate_add()
435 struct module *me) in module_finalize() argument
442 !nospec_disable && me->arch.plt_size) { in module_finalize()
445 ij = me->core_layout.base + me->arch.plt_offset + in module_finalize()
446 me->arch.plt_size - PLT_ENTRY_SIZE; in module_finalize()
476 jump_label_apply_nops(me); in module_finalize()