Lines Matching refs:me

71 static void check_rela(Elf_Rela *rela, struct module *me)  in check_rela()  argument
75 info = me->arch.syminfo + ELF_R_SYM (rela->r_info); in check_rela()
90 info->got_offset = me->arch.got_size; in check_rela()
91 me->arch.got_size += sizeof(void*); in check_rela()
102 info->plt_offset = me->arch.plt_size; in check_rela()
103 me->arch.plt_size += PLT_ENTRY_SIZE; in check_rela()
121 char *secstrings, struct module *me) in module_frob_arch_sections() argument
138 printk(KERN_ERR "module %s: no symbol table\n", me->name); in module_frob_arch_sections()
143 me->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections()
144 me->arch.syminfo = vmalloc(array_size(sizeof(struct mod_arch_syminfo), in module_frob_arch_sections()
145 me->arch.nsyms)); in module_frob_arch_sections()
146 if (!me->arch.syminfo) in module_frob_arch_sections()
150 for (i = 0; i < me->arch.nsyms; i++) { in module_frob_arch_sections()
156 me->arch.syminfo[i].got_offset = -1UL; in module_frob_arch_sections()
157 me->arch.syminfo[i].plt_offset = -1UL; in module_frob_arch_sections()
158 me->arch.syminfo[i].got_initialized = 0; in module_frob_arch_sections()
159 me->arch.syminfo[i].plt_initialized = 0; in module_frob_arch_sections()
163 me->arch.got_size = me->arch.plt_size = 0; in module_frob_arch_sections()
170 check_rela(rela + j, me); in module_frob_arch_sections()
175 me->core_layout.size = ALIGN(me->core_layout.size, 4); in module_frob_arch_sections()
176 me->arch.got_offset = me->core_layout.size; in module_frob_arch_sections()
177 me->core_layout.size += me->arch.got_size; in module_frob_arch_sections()
178 me->arch.plt_offset = me->core_layout.size; in module_frob_arch_sections()
179 if (me->arch.plt_size) { in module_frob_arch_sections()
181 me->arch.plt_size += PLT_ENTRY_SIZE; in module_frob_arch_sections()
182 me->core_layout.size += me->arch.plt_size; in module_frob_arch_sections()
235 const char *strtab, struct module *me, in apply_rela() argument
249 info = me->arch.syminfo + r_sym; in apply_rela()
306 Elf_Addr *gotent = me->core_layout.base + in apply_rela()
307 me->arch.got_offset + in apply_rela()
331 val += (Elf_Addr) me->core_layout.base - loc; in apply_rela()
344 unsigned int *ip = me->core_layout.base + in apply_rela()
345 me->arch.plt_offset + in apply_rela()
352 ij = me->core_layout.base + in apply_rela()
353 me->arch.plt_offset + in apply_rela()
354 me->arch.plt_size - PLT_ENTRY_SIZE; in apply_rela()
371 val = me->arch.plt_offset - me->arch.got_offset + in apply_rela()
378 val = (Elf_Addr) me->core_layout.base + in apply_rela()
379 me->arch.plt_offset + in apply_rela()
400 ((Elf_Addr) me->core_layout.base + me->arch.got_offset); in apply_rela()
410 val = (Elf_Addr) me->core_layout.base + me->arch.got_offset + in apply_rela()
426 me->name, r_type); in apply_rela()
432 me->name, strtab + symtab[r_sym].st_name, in apply_rela()
441 struct module *me, in __apply_relocate_add() argument
458 rc = apply_rela(rela, base, symtab, strtab, me, write); in __apply_relocate_add()
467 struct module *me) in apply_relocate_add() argument
469 bool early = me->state == MODULE_STATE_UNFORMED; in apply_relocate_add()
475 return __apply_relocate_add(sechdrs, strtab, symindex, relsec, me, in apply_relocate_add()
480 static int module_alloc_ftrace_hotpatch_trampolines(struct module *me, in module_alloc_ftrace_hotpatch_trampolines() argument
495 me->arch.trampolines_start = (struct ftrace_hotpatch_trampoline *)start; in module_alloc_ftrace_hotpatch_trampolines()
496 me->arch.trampolines_end = (struct ftrace_hotpatch_trampoline *)end; in module_alloc_ftrace_hotpatch_trampolines()
497 me->arch.next_trampoline = me->arch.trampolines_start; in module_alloc_ftrace_hotpatch_trampolines()
505 struct module *me) in module_finalize() argument
515 !nospec_disable && me->arch.plt_size) { in module_finalize()
518 ij = me->core_layout.base + me->arch.plt_offset + in module_finalize()
519 me->arch.plt_size - PLT_ENTRY_SIZE; in module_finalize()
550 ret = module_alloc_ftrace_hotpatch_trampolines(me, s); in module_finalize()
557 jump_label_apply_nops(me); in module_finalize()