Home
last modified time | relevance | path

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

/Linux-v5.4/scripts/
Dsortextable.c184 static inline unsigned int get_secindex(unsigned int shndx, in get_secindex() argument
188 if (is_shndx_special(shndx)) in get_secindex()
189 return SPECIAL(shndx); in get_secindex()
190 if (shndx != SHN_XINDEX) in get_secindex()
191 return shndx; in get_secindex()
/Linux-v5.4/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.4/arch/x86/tools/
Drelocs.c242 static const char *sec_name(unsigned shndx) in sec_name() argument
248 if (shndx < shnum) { in sec_name()
249 name = sec_strtab + secs[shndx].shdr.sh_name; in sec_name()
251 else if (shndx == SHN_ABS) { in sec_name()
254 else if (shndx == SHN_COMMON) { in sec_name()
/Linux-v5.4/tools/lib/bpf/
Dlibbpf.c1690 int shndx) in bpf_object__shndx_is_data() argument
1692 return shndx == obj->efile.data_shndx || in bpf_object__shndx_is_data()
1693 shndx == obj->efile.bss_shndx || in bpf_object__shndx_is_data()
1694 shndx == obj->efile.rodata_shndx; in bpf_object__shndx_is_data()
1698 int shndx) in bpf_object__shndx_is_maps() argument
1700 return shndx == obj->efile.maps_shndx || in bpf_object__shndx_is_maps()
1701 shndx == obj->efile.btf_maps_shndx; in bpf_object__shndx_is_maps()
1705 int shndx) in bpf_object__relo_in_known_section() argument
1707 return shndx == obj->efile.text_shndx || in bpf_object__relo_in_known_section()
1708 bpf_object__shndx_is_maps(obj, shndx) || in bpf_object__relo_in_known_section()
[all …]
/Linux-v5.4/tools/perf/util/
Dprobe-finder.c1519 Elf32_Word shndx; in debuginfo__get_text_offset() local
1535 p = dwfl_module_relocation_info(dbg->mod, i, &shndx); in debuginfo__get_text_offset()
1538 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset()