Searched refs:shndx (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/scripts/ |
D | sorttable.c | 177 static inline unsigned int get_secindex(unsigned int shndx, in get_secindex() argument 181 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()
|
D | recordmcount.h | 195 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()
|
/kernel/linux/linux-5.10/tools/objtool/ |
D | elf.c | 382 Elf32_Word shndx; in read_symbols() local 410 &shndx)) { in read_symbols() 426 shndx = sym->sym.st_shndx; in read_symbols() 428 sym->sec = find_section_by_index(elf, shndx); in read_symbols() 576 Elf32_Word shndx = sym->sec ? sym->sec->idx : SHN_UNDEF; in elf_update_symbol() local 585 shndx = sym->sym.st_shndx; in elf_update_symbol() 671 if ((shndx >= SHN_UNDEF && shndx < SHN_LORESERVE) || is_special_shndx) { in elf_update_symbol() 672 sym->sym.st_shndx = shndx; in elf_update_symbol() 674 shndx = 0; in elf_update_symbol() 683 if (!gelf_update_symshndx(symtab_data, shndx_data, idx, &sym->sym, shndx)) { in elf_update_symbol()
|
/kernel/linux/linux-5.10/arch/mips/boot/tools/ |
D | relocs.c | 91 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()
|
/kernel/linux/linux-5.10/arch/x86/tools/ |
D | relocs.c | 242 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()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | probe-finder.c | 1669 Elf32_Word shndx; in debuginfo__get_text_offset() local 1685 p = dwfl_module_relocation_info(dbg->mod, i, &shndx); in debuginfo__get_text_offset() 1688 scn = elf_getscn(elf, shndx); in debuginfo__get_text_offset()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | libbpf.c | 3306 int shndx) in bpf_object__shndx_is_data() argument 3308 return shndx == obj->efile.data_shndx || in bpf_object__shndx_is_data() 3309 shndx == obj->efile.bss_shndx || in bpf_object__shndx_is_data() 3310 shndx == obj->efile.rodata_shndx; in bpf_object__shndx_is_data() 3314 int shndx) in bpf_object__shndx_is_maps() argument 3316 return shndx == obj->efile.maps_shndx || in bpf_object__shndx_is_maps() 3317 shndx == obj->efile.btf_maps_shndx; in bpf_object__shndx_is_maps() 3321 bpf_object__section_to_libbpf_map_type(const struct bpf_object *obj, int shndx) in bpf_object__section_to_libbpf_map_type() argument 3323 if (shndx == obj->efile.data_shndx) in bpf_object__section_to_libbpf_map_type() 3325 else if (shndx == obj->efile.bss_shndx) in bpf_object__section_to_libbpf_map_type() [all …]
|