Lines Matching refs:mod
31 static bool in_init(const struct module *mod, unsigned long loc) in in_init() argument
33 return loc - (u32)mod->init_layout.base < mod->init_layout.size; in in_init()
51 u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val) in get_module_plt() argument
53 struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core : in get_module_plt()
54 &mod->arch.init; in get_module_plt()
215 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
228 mod->arch.core.plt = s; in module_frob_arch_sections()
230 mod->arch.init.plt = s; in module_frob_arch_sections()
235 if (!mod->arch.core.plt || !mod->arch.init.plt) { in module_frob_arch_sections()
236 pr_err("%s: module PLT section(s) missing\n", mod->name); in module_frob_arch_sections()
240 pr_err("%s: module symtab section missing\n", mod->name); in module_frob_arch_sections()
267 mod->arch.core.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections()
268 mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
269 mod->arch.core.plt->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
270 mod->arch.core.plt->sh_size = round_up(core_plts * PLT_ENT_SIZE, in module_frob_arch_sections()
272 mod->arch.core.plt_count = 0; in module_frob_arch_sections()
273 mod->arch.core.plt_ent = NULL; in module_frob_arch_sections()
275 mod->arch.init.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections()
276 mod->arch.init.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
277 mod->arch.init.plt->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
278 mod->arch.init.plt->sh_size = round_up(init_plts * PLT_ENT_SIZE, in module_frob_arch_sections()
280 mod->arch.init.plt_count = 0; in module_frob_arch_sections()
281 mod->arch.init.plt_ent = NULL; in module_frob_arch_sections()
284 mod->arch.core.plt->sh_size, mod->arch.init.plt->sh_size); in module_frob_arch_sections()