Home
last modified time | relevance | path

Searched refs:shndx (Results 1 – 10 of 10) sorted by relevance

/linux-6.15/arch/loongarch/kernel/
H A Dmodule-sections.c22 got = (struct got_entry *)sechdrs[got_sec->shndx].sh_addr; in module_emit_got_entry()
52 plt = (struct plt_entry *)sechdrs[plt_sec->shndx].sh_addr; in module_emit_plt_entry()
115 mod->arch.got.shndx = i; in module_frob_arch_sections()
117 mod->arch.plt.shndx = i; in module_frob_arch_sections()
119 mod->arch.plt_idx.shndx = i; in module_frob_arch_sections()
124 if (!mod->arch.got.shndx) { in module_frob_arch_sections()
128 if (!mod->arch.plt.shndx) { in module_frob_arch_sections()
132 if (!mod->arch.plt_idx.shndx) { 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()
[all …]
/linux-6.15/arch/loongarch/include/asm/
H A Dmodule.h15 int shndx; member
78 struct plt_idx_entry *plt_idx = (struct plt_idx_entry *)sechdrs[sec->shndx].sh_addr; in get_plt_idx()
94 struct plt_entry *plt = (struct plt_entry *)sechdrs[sec_plt->shndx].sh_addr; in get_plt_entry()
107 struct got_entry *got = (struct got_entry *)sechdrs[sec->shndx].sh_addr; in get_got_entry()
/linux-6.15/tools/perf/util/
H A Ddebuginfo.c150 Elf32_Word shndx; in debuginfo__get_text_offset() local
166 p = dwfl_module_relocation_info(dbg->mod, i, &shndx); in debuginfo__get_text_offset()
169 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset()
H A Dsymbol-elf.c1213 size_t shndx; in read_gnu_debugdata() local
1223 scn = elf_section_by_name(elf, &ehdr, &shdr, ".gnu_debugdata", &shndx); in read_gnu_debugdata()
/linux-6.15/tools/objtool/
H A Delf.c444 Elf32_Word shndx; in read_symbols() local
478 &shndx)) { in read_symbols()
494 shndx = sym->sym.st_shndx; in read_symbols()
496 sym->sec = find_section_by_index(elf, shndx); in read_symbols()
599 Elf32_Word shndx = sym->sec ? sym->sec->idx : SHN_UNDEF; in elf_update_symbol() local
608 shndx = sym->sym.st_shndx; in elf_update_symbol()
706 if ((shndx >= SHN_UNDEF && shndx < SHN_LORESERVE) || is_special_shndx) { in elf_update_symbol()
707 sym->sym.st_shndx = shndx; in elf_update_symbol()
709 shndx = 0; in elf_update_symbol()
718 if (!gelf_update_symshndx(symtab_data, shndx_data, idx, &sym->sym, shndx)) { in elf_update_symbol()
/linux-6.15/arch/mips/boot/tools/
H A Drelocs.c91 static const char *sec_name(unsigned shndx) in sec_name() argument
97 if (shndx < ehdr.e_shnum) in sec_name()
98 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
99 else if (shndx == SHN_ABS) in sec_name()
101 else if (shndx == SHN_COMMON) in sec_name()
/linux-6.15/scripts/
H A Drecordmcount.h195 unsigned short shndx = w2(sym->st_shndx); in get_symindex() local
198 if (shndx > SHN_UNDEF && shndx < SHN_LORESERVE) in get_symindex()
199 return shndx; in get_symindex()
201 if (shndx == SHN_XINDEX) { in get_symindex()
H A Dsorttable.c274 SYM_HALF(shndx) in SYM_WORD()
410 static inline unsigned int get_secindex(unsigned int shndx, in get_secindex() argument
414 if (is_shndx_special(shndx)) in get_secindex()
415 return SPECIAL(shndx); in get_secindex()
416 if (shndx != SHN_XINDEX) in get_secindex()
417 return shndx; in get_secindex()
/linux-6.15/arch/x86/tools/
H A Drelocs.c260 static const char *sec_name(unsigned shndx) in sec_name() argument
267 if (shndx < shnum) in sec_name()
268 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
269 else if (shndx == SHN_ABS) in sec_name()
271 else if (shndx == SHN_COMMON) in sec_name()
/linux-6.15/tools/lib/bpf/
H A Dlibbpf.c1356 int shndx, Elf_Data *data) in init_struct_ops_maps() argument
1367 if (shndx == -1) in init_struct_ops_maps()
1407 map->sec_idx = shndx; in init_struct_ops_maps()
4456 int shndx) in bpf_object__shndx_is_data() argument
4458 switch (obj->efile.secs[shndx].sec_type) { in bpf_object__shndx_is_data()
4469 int shndx) in bpf_object__shndx_is_maps() argument
4471 return shndx == obj->efile.btf_maps_shndx; in bpf_object__shndx_is_maps()
4475 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_object__section_to_libbpf_map_type() argument
4477 if (shndx == obj->efile.symbols_shndx) in bpf_object__section_to_libbpf_map_type()
4480 switch (obj->efile.secs[shndx].sec_type) { in bpf_object__section_to_libbpf_map_type()