Lines Matching refs:mod
66 static bool in_init(const struct module *mod, void *loc) in in_init() argument
68 return (u64)loc - (u64)mod->init_layout.base < mod->init_layout.size; in in_init()
71 u64 module_emit_plt_entry(struct module *mod, Elf64_Shdr *sechdrs, in module_emit_plt_entry() argument
75 struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core : in module_emit_plt_entry()
76 &mod->arch.init; in module_emit_plt_entry()
103 u64 module_emit_veneer_for_adrp(struct module *mod, Elf64_Shdr *sechdrs, in module_emit_veneer_for_adrp() argument
106 struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core : in module_emit_veneer_for_adrp()
107 &mod->arch.init; in module_emit_veneer_for_adrp()
256 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
270 mod->arch.core.plt_shndx = i; in module_frob_arch_sections()
272 mod->arch.init.plt_shndx = i; in module_frob_arch_sections()
281 if (!mod->arch.core.plt_shndx || !mod->arch.init.plt_shndx) { in module_frob_arch_sections()
282 pr_err("%s: module PLT section(s) missing\n", mod->name); in module_frob_arch_sections()
286 pr_err("%s: module symtab section missing\n", mod->name); in module_frob_arch_sections()
313 pltsec = sechdrs + mod->arch.core.plt_shndx; in module_frob_arch_sections()
318 mod->arch.core.plt_num_entries = 0; in module_frob_arch_sections()
319 mod->arch.core.plt_max_entries = core_plts; in module_frob_arch_sections()
321 pltsec = sechdrs + mod->arch.init.plt_shndx; in module_frob_arch_sections()
326 mod->arch.init.plt_num_entries = 0; in module_frob_arch_sections()
327 mod->arch.init.plt_max_entries = init_plts; in module_frob_arch_sections()