Home
last modified time | relevance | path

Searched refs:pltsec (Results 1 – 2 of 2) sorted by relevance

/arch/arm64/kernel/
Dmodule-plts.c78 struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core : in module_emit_plt_entry() local
80 struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr; in module_emit_plt_entry()
81 int i = pltsec->plt_num_entries; in module_emit_plt_entry()
98 pltsec->plt_num_entries += i - j; in module_emit_plt_entry()
99 if (WARN_ON(pltsec->plt_num_entries > pltsec->plt_max_entries)) in module_emit_plt_entry()
109 struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core : in module_emit_veneer_for_adrp() local
111 struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr; in module_emit_veneer_for_adrp()
112 int i = pltsec->plt_num_entries++; in module_emit_veneer_for_adrp()
116 if (WARN_ON(pltsec->plt_num_entries > pltsec->plt_max_entries)) in module_emit_veneer_for_adrp()
120 i = pltsec->plt_num_entries++; in module_emit_veneer_for_adrp()
[all …]
/arch/arm/kernel/
Dmodule-plts.c36 static void prealloc_fixed(struct mod_plt_sec *pltsec, struct plt_entries *plt) in prealloc_fixed() argument
40 if (!ARRAY_SIZE(fixed_plts) || pltsec->plt_count) in prealloc_fixed()
42 pltsec->plt_count = ARRAY_SIZE(fixed_plts); in prealloc_fixed()
53 struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core : in get_module_plt() local
59 if (!pltsec->plt_ent) in get_module_plt()
60 pltsec->plt_ent = (struct plt_entries *)pltsec->plt->sh_addr; in get_module_plt()
61 plt = pltsec->plt_ent; in get_module_plt()
63 prealloc_fixed(pltsec, plt); in get_module_plt()
75 if (pltsec->plt_count > 0) { in get_module_plt()
76 plt += (pltsec->plt_count - 1) / PLT_ENT_COUNT; in get_module_plt()
[all …]