Lines Matching refs:pltsec
31 static void prealloc_fixed(struct mod_plt_sec *pltsec, struct plt_entries *plt) in prealloc_fixed() argument
35 if (!ARRAY_SIZE(fixed_plts) || pltsec->plt_count) in prealloc_fixed()
37 pltsec->plt_count = ARRAY_SIZE(fixed_plts); in prealloc_fixed()
48 struct mod_plt_sec *pltsec = !within_module_init(loc, mod) ? in get_module_plt() local
54 if (!pltsec->plt_ent) in get_module_plt()
55 pltsec->plt_ent = (struct plt_entries *)pltsec->plt->sh_addr; in get_module_plt()
56 plt = pltsec->plt_ent; in get_module_plt()
58 prealloc_fixed(pltsec, plt); in get_module_plt()
70 if (pltsec->plt_count > 0) { in get_module_plt()
71 plt += (pltsec->plt_count - 1) / PLT_ENT_COUNT; in get_module_plt()
72 idx = (pltsec->plt_count - 1) % PLT_ENT_COUNT; in get_module_plt()
82 pltsec->plt_count++; in get_module_plt()
83 BUG_ON(pltsec->plt_count * PLT_ENT_SIZE > pltsec->plt->sh_size); in get_module_plt()