Lines Matching full:mod

32 static bool in_init(const struct module *mod, unsigned long loc)  in in_init()  argument
34 return loc - (u32)mod->init_layout.base < mod->init_layout.size; in in_init()
37 u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val) in get_module_plt() argument
39 struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core : in get_module_plt()
40 &mod->arch.init; in get_module_plt()
190 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
203 mod->arch.core.plt = s; in module_frob_arch_sections()
205 mod->arch.init.plt = s; in module_frob_arch_sections()
210 if (!mod->arch.core.plt || !mod->arch.init.plt) { in module_frob_arch_sections()
211 pr_err("%s: module PLT section(s) missing\n", mod->name); in module_frob_arch_sections()
215 pr_err("%s: module symtab section missing\n", mod->name); in module_frob_arch_sections()
242 mod->arch.core.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections()
243 mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
244 mod->arch.core.plt->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
245 mod->arch.core.plt->sh_size = round_up(core_plts * PLT_ENT_SIZE, in module_frob_arch_sections()
247 mod->arch.core.plt_count = 0; in module_frob_arch_sections()
249 mod->arch.init.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections()
250 mod->arch.init.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
251 mod->arch.init.plt->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
252 mod->arch.init.plt->sh_size = round_up(init_plts * PLT_ENT_SIZE, in module_frob_arch_sections()
254 mod->arch.init.plt_count = 0; in module_frob_arch_sections()
257 mod->arch.core.plt->sh_size, mod->arch.init.plt->sh_size); in module_frob_arch_sections()