Home
last modified time | relevance | path

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

/openbmc/linux/arch/arm64/kernel/
H A Dmodule-plts.c73 struct mod_plt_sec *pltsec = !within_module_init((unsigned long)loc, mod) ? in module_emit_plt_entry() local
75 struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr; in module_emit_plt_entry()
76 int i = pltsec->plt_num_entries; in module_emit_plt_entry()
93 pltsec->plt_num_entries += i - j; in module_emit_plt_entry()
94 if (WARN_ON(pltsec->plt_num_entries > pltsec->plt_max_entries)) in module_emit_plt_entry()
104 struct mod_plt_sec *pltsec = !within_module_init((unsigned long)loc, mod) ? in module_emit_veneer_for_adrp() local
106 struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr; in module_emit_veneer_for_adrp()
107 int i = pltsec->plt_num_entries++; in module_emit_veneer_for_adrp()
111 if (WARN_ON(pltsec->plt_num_entries > pltsec->plt_max_entries)) in module_emit_veneer_for_adrp()
115 i = pltsec->plt_num_entries++; in module_emit_veneer_for_adrp()
[all …]
/openbmc/linux/arch/arm/kernel/
H A Dmodule-plts.c31 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()
[all …]