Home
last modified time | relevance | path

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

/Linux-v5.15/scripts/
Dsorttable.c181 static inline unsigned int get_secindex(unsigned int shndx, in get_secindex() argument
185 if (is_shndx_special(shndx)) in get_secindex()
186 return SPECIAL(shndx); in get_secindex()
187 if (shndx != SHN_XINDEX) in get_secindex()
188 return shndx; in get_secindex()
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()
/Linux-v5.15/arch/mips/boot/tools/
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-v5.15/arch/x86/tools/
Drelocs.c245 static const char *sec_name(unsigned shndx) in sec_name() argument
251 if (shndx < shnum) { in sec_name()
252 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
254 else if (shndx == SHN_ABS) { in sec_name()
257 else if (shndx == SHN_COMMON) { in sec_name()
/Linux-v5.15/tools/objtool/
Delf.c348 Elf32_Word shndx; in read_symbols() local
383 &shndx)) { in read_symbols()
399 shndx = sym->sym.st_shndx; in read_symbols()
401 sym->sec = find_section_by_index(elf, shndx); in read_symbols()
/Linux-v5.15/tools/perf/util/
Dprobe-finder.c1676 Elf32_Word shndx; in debuginfo__get_text_offset() local
1692 p = dwfl_module_relocation_info(dbg->mod, i, &shndx); in debuginfo__get_text_offset()
1695 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset()
/Linux-v5.15/tools/lib/bpf/
Dlibbpf.c3566 int shndx) in bpf_object__shndx_is_data() argument
3568 return shndx == obj->efile.data_shndx || in bpf_object__shndx_is_data()
3569 shndx == obj->efile.bss_shndx || in bpf_object__shndx_is_data()
3570 shndx == obj->efile.rodata_shndx; in bpf_object__shndx_is_data()
3574 int shndx) in bpf_object__shndx_is_maps() argument
3576 return shndx == obj->efile.maps_shndx || in bpf_object__shndx_is_maps()
3577 shndx == obj->efile.btf_maps_shndx; in bpf_object__shndx_is_maps()
3581 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_object__section_to_libbpf_map_type() argument
3583 if (shndx == obj->efile.data_shndx) in bpf_object__section_to_libbpf_map_type()
3585 else if (shndx == obj->efile.bss_shndx) in bpf_object__section_to_libbpf_map_type()
[all …]