Lines Matching refs:me

72 static void check_rela(Elf_Rela *rela, struct module *me)  in check_rela()  argument
76 info = me->arch.syminfo + ELF_R_SYM (rela->r_info); in check_rela()
91 info->got_offset = me->arch.got_size; in check_rela()
92 me->arch.got_size += sizeof(void*); in check_rela()
103 info->plt_offset = me->arch.plt_size; in check_rela()
104 me->arch.plt_size += PLT_ENTRY_SIZE; in check_rela()
122 char *secstrings, struct module *me) in module_frob_arch_sections() argument
139 printk(KERN_ERR "module %s: no symbol table\n", me->name); in module_frob_arch_sections()
144 me->arch.nsyms = symtab->sh_size / sizeof(Elf_Sym); in module_frob_arch_sections()
145 me->arch.syminfo = vmalloc(array_size(sizeof(struct mod_arch_syminfo), in module_frob_arch_sections()
146 me->arch.nsyms)); in module_frob_arch_sections()
147 if (!me->arch.syminfo) in module_frob_arch_sections()
151 for (i = 0; i < me->arch.nsyms; i++) { in module_frob_arch_sections()
157 me->arch.syminfo[i].got_offset = -1UL; in module_frob_arch_sections()
158 me->arch.syminfo[i].plt_offset = -1UL; in module_frob_arch_sections()
159 me->arch.syminfo[i].got_initialized = 0; in module_frob_arch_sections()
160 me->arch.syminfo[i].plt_initialized = 0; in module_frob_arch_sections()
164 me->arch.got_size = me->arch.plt_size = 0; in module_frob_arch_sections()
171 check_rela(rela + j, me); in module_frob_arch_sections()
176 me->core_layout.size = ALIGN(me->core_layout.size, 4); in module_frob_arch_sections()
177 me->arch.got_offset = me->core_layout.size; in module_frob_arch_sections()
178 me->core_layout.size += me->arch.got_size; in module_frob_arch_sections()
179 me->arch.plt_offset = me->core_layout.size; in module_frob_arch_sections()
180 if (me->arch.plt_size) { in module_frob_arch_sections()
182 me->arch.plt_size += PLT_ENTRY_SIZE; in module_frob_arch_sections()
183 me->core_layout.size += me->arch.plt_size; in module_frob_arch_sections()
236 const char *strtab, struct module *me, in apply_rela() argument
250 info = me->arch.syminfo + r_sym; in apply_rela()
307 Elf_Addr *gotent = me->core_layout.base + in apply_rela()
308 me->arch.got_offset + in apply_rela()
332 val += (Elf_Addr) me->core_layout.base - loc; in apply_rela()
348 plt_base = me->core_layout.base + me->arch.plt_offset; in apply_rela()
355 jump_r1 = plt_base + me->arch.plt_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()
544 ret = module_alloc_ftrace_hotpatch_trampolines(me, s); in module_finalize()