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