Searched refs:shndx (Results 1 – 6 of 6) sorted by relevance
177 static inline unsigned int get_secindex(unsigned int shndx, in get_secindex() argument181 if (is_shndx_special(shndx)) in get_secindex()182 return SPECIAL(shndx); in get_secindex()183 if (shndx != SHN_XINDEX) in get_secindex()184 return shndx; in get_secindex()
91 static const char *sec_name(unsigned shndx) in sec_name() argument97 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()
242 static const char *sec_name(unsigned shndx) in sec_name() argument248 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()
353 Elf32_Word shndx; in read_symbols() local379 &shndx)) { in read_symbols()398 shndx = sym->sym.st_shndx; in read_symbols()400 sym->sec = find_section_by_index(elf, shndx); in read_symbols()
1666 Elf32_Word shndx; in debuginfo__get_text_offset() local1682 p = dwfl_module_relocation_info(dbg->mod, i, &shndx); in debuginfo__get_text_offset()1685 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset()
3305 int shndx) in bpf_object__shndx_is_data() argument3307 return shndx == obj->efile.data_shndx || in bpf_object__shndx_is_data()3308 shndx == obj->efile.bss_shndx || in bpf_object__shndx_is_data()3309 shndx == obj->efile.rodata_shndx; in bpf_object__shndx_is_data()3313 int shndx) in bpf_object__shndx_is_maps() argument3315 return shndx == obj->efile.maps_shndx || in bpf_object__shndx_is_maps()3316 shndx == obj->efile.btf_maps_shndx; in bpf_object__shndx_is_maps()3320 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_object__section_to_libbpf_map_type() argument3322 if (shndx == obj->efile.data_shndx) in bpf_object__section_to_libbpf_map_type()3324 else if (shndx == obj->efile.bss_shndx) in bpf_object__section_to_libbpf_map_type()[all …]