Home
last modified time | relevance | path

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

/linux/arch/loongarch/kernel/
H A Dmodule-sections.c41 struct mod_section *plt_sec = &mod->arch.plt; in module_emit_plt_entry() local
43 struct plt_entry *plt = get_plt_entry(val, sechdrs, plt_sec, plt_idx_sec); in module_emit_plt_entry()
49 nr = plt_sec->num_entries; in module_emit_plt_entry()
52 plt = (struct plt_entry *)sechdrs[plt_sec->shndx].sh_addr; in module_emit_plt_entry()
57 plt_sec->num_entries++; in module_emit_plt_entry()
59 BUG_ON(plt_sec->num_entries > plt_sec->max_entries); in module_emit_plt_entry()
108 Elf_Shdr *got_sec, *plt_sec, *plt_idx_sec, *tramp = NULL; in module_frob_arch_sections() local
161 plt_sec = sechdrs + mod->arch.plt.shndx; in module_frob_arch_sections()
162 plt_sec->sh_type = SHT_NOBITS; in module_frob_arch_sections()
163 plt_sec->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in module_frob_arch_sections()
[all …]
/linux/arch/riscv/kernel/
H A Dmodule-sections.c36 struct mod_section *plt_sec = &mod->arch.plt; in module_emit_plt_entry() local
37 struct plt_entry *plt = get_plt_entry(val, plt_sec, got_plt_sec); in module_emit_plt_entry()
38 int i = plt_sec->num_entries; in module_emit_plt_entry()
46 plt = (struct plt_entry *)plt_sec->shdr->sh_addr; in module_emit_plt_entry()
51 plt_sec->num_entries++; in module_emit_plt_entry()
53 BUG_ON(plt_sec->num_entries > plt_sec->max_entries); in module_emit_plt_entry()