Lines Matching refs:sechdrs

12 Elf_Addr module_emit_got_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val)  in module_emit_got_entry()  argument
16 struct got_entry *got = get_got_entry(val, sechdrs, got_sec); in module_emit_got_entry()
22 got = (struct got_entry *)sechdrs[got_sec->shndx].sh_addr; in module_emit_got_entry()
38 Elf_Addr module_emit_plt_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_plt_entry() argument
43 struct plt_entry *plt = get_plt_entry(val, sechdrs, plt_sec, plt_idx_sec); in module_emit_plt_entry()
52 plt = (struct plt_entry *)sechdrs[plt_sec->shndx].sh_addr; in module_emit_plt_entry()
54 plt_idx = (struct plt_idx_entry *)sechdrs[plt_idx_sec->shndx].sh_addr; in module_emit_plt_entry()
104 int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, in module_frob_arch_sections() argument
114 if (!strcmp(secstrings + sechdrs[i].sh_name, ".got")) in module_frob_arch_sections()
116 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt")) in module_frob_arch_sections()
118 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".plt.idx")) in module_frob_arch_sections()
120 else if (!strcmp(secstrings + sechdrs[i].sh_name, ".ftrace_trampoline")) in module_frob_arch_sections()
121 tramp = sechdrs + i; in module_frob_arch_sections()
139 int num_rela = sechdrs[i].sh_size / sizeof(Elf_Rela); in module_frob_arch_sections()
140 Elf_Rela *relas = (void *)ehdr + sechdrs[i].sh_offset; in module_frob_arch_sections()
141 Elf_Shdr *dst_sec = sechdrs + sechdrs[i].sh_info; in module_frob_arch_sections()
143 if (sechdrs[i].sh_type != SHT_RELA) in module_frob_arch_sections()
153 got_sec = sechdrs + mod->arch.got.shndx; in module_frob_arch_sections()
161 plt_sec = sechdrs + mod->arch.plt.shndx; in module_frob_arch_sections()
169 plt_idx_sec = sechdrs + mod->arch.plt_idx.shndx; in module_frob_arch_sections()