Searched refs:shndx (Results 1 - 9 of 9) sorted by relevance

/linux-master/arch/loongarch/kernel/
H A Dmodule-sections.c22 got = (struct got_entry *)sechdrs[got_sec->shndx].sh_addr;
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;
115 mod->arch.got.shndx = i;
117 mod->arch.plt.shndx = i;
119 mod->arch.plt_idx.shndx = i;
124 if (!mod->arch.got.shndx) {
128 if (!mod->arch.plt.shndx) {
132 if (!mod->arch.plt_idx.shndx) {
153 got_sec = sechdrs + mod->arch.got.shndx;
[all...]
/linux-master/arch/loongarch/include/asm/
H A Dmodule.h15 int shndx; member in struct:mod_section
78 struct plt_idx_entry *plt_idx = (struct plt_idx_entry *)sechdrs[sec->shndx].sh_addr;
94 struct plt_entry *plt = (struct plt_entry *)sechdrs[sec_plt->shndx].sh_addr;
107 struct got_entry *got = (struct got_entry *)sechdrs[sec->shndx].sh_addr;
/linux-master/scripts/
H A Dsorttable.c187 static inline unsigned int get_secindex(unsigned int shndx, argument
191 if (is_shndx_special(shndx))
192 return SPECIAL(shndx);
193 if (shndx != SHN_XINDEX)
194 return shndx;
H A Drecordmcount.h195 unsigned short shndx = w2(sym->st_shndx); local
198 if (shndx > SHN_UNDEF && shndx < SHN_LORESERVE)
199 return shndx;
201 if (shndx == SHN_XINDEX) {
/linux-master/tools/perf/util/
H A Ddebuginfo.c146 Elf32_Word shndx; local
162 p = dwfl_module_relocation_info(dbg->mod, i, &shndx);
165 scn = elf_getscn(elf, shndx);
/linux-master/tools/objtool/
H A Delf.c440 Elf32_Word shndx; local
474 &shndx)) {
490 shndx = sym->sym.st_shndx;
492 sym->sec = find_section_by_index(elf, shndx);
598 Elf32_Word shndx = sym->sec ? sym->sec->idx : SHN_UNDEF; local
607 shndx = sym->sym.st_shndx;
705 if ((shndx >= SHN_UNDEF && shndx < SHN_LORESERVE) || is_special_shndx) {
706 sym->sym.st_shndx = shndx;
708 shndx
[all...]
/linux-master/arch/mips/boot/tools/
H A Drelocs.c91 static const char *sec_name(unsigned shndx) argument
97 if (shndx < ehdr.e_shnum)
98 name = sec_strtab + secs[shndx].shdr.sh_name;
99 else if (shndx == SHN_ABS)
101 else if (shndx == SHN_COMMON)
/linux-master/arch/x86/tools/
H A Drelocs.c253 static const char *sec_name(unsigned shndx) argument
259 if (shndx < shnum) {
260 name = sec_strtab + secs[shndx].shdr.sh_name;
262 else if (shndx == SHN_ABS) {
265 else if (shndx == SHN_COMMON) {
827 int shndx = sym_index(sym); local
829 return (shndx == per_cpu_shndx) &&
/linux-master/tools/lib/bpf/
H A Dlibbpf.c1275 int shndx, Elf_Data *data)
1286 if (shndx == -1)
1326 map->sec_idx = shndx;
4340 int shndx)
4342 switch (obj->efile.secs[shndx].sec_type) {
4353 int shndx)
4355 return shndx == obj->efile.btf_maps_shndx;
4359 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) argument
4361 if (shndx == obj->efile.symbols_shndx)
4364 switch (obj->efile.secs[shndx]
1274 init_struct_ops_maps(struct bpf_object *obj, const char *sec_name, int shndx, Elf_Data *data) argument
4339 bpf_object__shndx_is_data(const struct bpf_object *obj, int shndx) argument
4352 bpf_object__shndx_is_maps(const struct bpf_object *obj, int shndx) argument
[all...]

Completed in 225 milliseconds