/external/elfutils/src/ |
D | objdump.c | 346 Elf_Data *xndxdata, size_t symstrndx, size_t shstrndx, in show_relocs_x() argument 383 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name)); in show_relocs_x() 403 size_t shstrndx) in show_relocs_rel() argument 415 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rel() 424 size_t shstrndx) in show_relocs_rela() argument 436 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rela() 443 section_match (Elf *elf, uint32_t scnndx, GElf_Shdr *shdr, size_t shstrndx) in section_match() argument 449 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); in section_match() 473 show_relocs (Ebl *ebl, const char *fname, uint32_t shstrndx) in show_relocs() argument 488 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx)) in show_relocs() [all …]
|
D | size.c | 395 size_t shstrndx; in show_sysv() local 396 if (unlikely (elf_getshdrstrndx (elf, &shstrndx) < 0)) in show_sysv() 411 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); in show_sysv() 439 maxlen, elf_strptr (elf, shstrndx, shdr->sh_name), in show_sysv() 464 size_t shstrndx; in show_sysv_one_line() local 465 if (unlikely (elf_getshdrstrndx (elf, &shstrndx) < 0)) in show_sysv_one_line() 489 shdr->sh_size, elf_strptr (elf, shstrndx, shdr->sh_name)); in show_sysv_one_line()
|
D | readelf.c | 585 size_t shstrndx; in open_input_section() local 603 if (elf_getshdrstrndx (elf, &shstrndx) < 0) in open_input_section() 628 const char *sname = elf_strptr (elf, shstrndx, shdr->sh_name); in open_input_section() 1186 size_t shstrndx; in print_shdr() local 1203 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in print_shdr() 1270 sname = elf_strptr (ebl->elf, shstrndx, shdr->sh_name) ?: "<corrupt>"; in print_shdr() 1409 size_t shstrndx; in print_phdr() local 1410 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in print_phdr() 1514 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in print_phdr() 1537 size_t shstrndx; in section_name() local [all …]
|
D | strip.c | 376 size_t shstrndx; in secndx_name() local 380 if (shdr == NULL || elf_getshdrstrndx (elf, &shstrndx) < 0) in secndx_name() 382 return elf_strptr (elf, shstrndx, shdr->sh_name) ?: "???"; in secndx_name() 450 const char *fname, size_t shstrndx) in remove_debug_relocations() argument 473 const char *tname = elf_strptr (elf, shstrndx, in remove_debug_relocations() 813 GElf_Ehdr *ehdr, const char *fname, size_t shstrndx, in handle_debug_relocs() argument 877 if (update_shdrstrndx (new_elf, shstrndx) != 0) in handle_debug_relocs() 884 remove_debug_relocations (ebl, new_elf, ehdr, fname, shstrndx); in handle_debug_relocs() 938 size_t shstrndx; in handle_elf() local 1034 if (unlikely (elf_getshdrstrndx (elf, &shstrndx) < 0)) in handle_elf() [all …]
|
D | nm.c | 743 size_t shstrndx; in show_symbols_sysv() local 744 if (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0) in show_symbols_sysv() 758 char *name = elf_strptr (ebl->elf, shstrndx, in show_symbols_sysv() 1204 size_t shstrndx; in show_symbols() local 1205 if (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0) in show_symbols() 1220 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_symbols() 1225 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_symbols() 1304 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_symbols()
|
/external/elfutils/libdw/ |
D | dwarf_begin_elf.c | 74 check_section (Dwarf *result, size_t shstrndx, Elf_Scn *scn, bool inscngrp) in check_section() argument 104 const char *scnname = elf_strptr (result->elf, shstrndx, in check_section() 305 global_read (Dwarf *result, Elf *elf, size_t shstrndx) in global_read() argument 310 result = check_section (result, shstrndx, scn, false); in global_read() 317 scngrp_read (Dwarf *result, Elf *elf, size_t shstrndx, Elf_Scn *scngrp) in scngrp_read() argument 366 result = check_section (result, shstrndx, scn, true); in scngrp_read() 430 size_t shstrndx; in dwarf_begin_elf() local 431 if (elf_getshdrstrndx (elf, &shstrndx) != 0) in dwarf_begin_elf() 445 return global_read (result, elf, shstrndx); in dwarf_begin_elf() 447 return scngrp_read (result, elf, shstrndx, scngrp); in dwarf_begin_elf()
|
D | dwarf_getcfi_elf.c | 273 size_t shstrndx; in getcfi_shdr() local 274 if (elf_getshdrstrndx (elf, &shstrndx) != 0) in getcfi_shdr() 280 if (shstrndx != 0) in getcfi_shdr() 291 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); in getcfi_shdr()
|
/external/elfutils/backends/ |
D | s390_symbol.c | 71 size_t shstrndx; in s390_check_special_symbol() local 72 if (elf_getshdrstrndx (elf, &shstrndx) != 0) in s390_check_special_symbol() 74 const char *sname = elf_strptr (elf, shstrndx, destshdr->sh_name); in s390_check_special_symbol() 85 sname = elf_strptr (elf, shstrndx, shdr->sh_name); in s390_check_special_symbol()
|
D | aarch64_symbol.c | 72 size_t shstrndx; in aarch64_check_special_symbol() local 73 if (elf_getshdrstrndx (elf, &shstrndx) != 0) in aarch64_check_special_symbol() 75 const char *sname = elf_strptr (elf, shstrndx, destshdr->sh_name); in aarch64_check_special_symbol() 86 sname = elf_strptr (elf, shstrndx, shdr->sh_name); in aarch64_check_special_symbol()
|
D | riscv_symbol.c | 97 size_t shstrndx; in riscv_check_special_symbol() local 98 if (elf_getshdrstrndx (elf, &shstrndx) != 0) in riscv_check_special_symbol() 100 const char *sname = elf_strptr (elf, shstrndx, destshdr->sh_name); in riscv_check_special_symbol()
|
D | ppc64_symbol.c | 103 size_t shstrndx; in ppc64_check_special_symbol() local 104 if (elf_getshdrstrndx (elf, &shstrndx) != 0) in ppc64_check_special_symbol() 106 const char *sname = elf_strptr (elf, shstrndx, destshdr->sh_name); in ppc64_check_special_symbol()
|
D | ppc64_init.c | 83 size_t shstrndx; in ppc64_init() local 85 && elf_getshdrstrndx (elf, &shstrndx) == 0) in ppc64_init() 98 const char *name = elf_strptr (elf, shstrndx, in ppc64_init()
|
D | ppc_symbol.c | 156 size_t shstrndx; in ppc_check_special_symbol() local 157 if (elf_getshdrstrndx (elf, &shstrndx) != 0) in ppc_check_special_symbol() 159 const char *sname = elf_strptr (elf, shstrndx, destshdr->sh_name); in ppc_check_special_symbol()
|
/external/perf_data_converter/src/quipper/ |
D | dso.cc | 30 size_t shstrndx; // section index of the section names string table. in FindElfSection() local 31 if (elf_getshdrstrndx(elf, &shstrndx) != 0) { in FindElfSection() 36 if (!elf_rawdata(elf_getscn(elf, shstrndx), nullptr)) return nullptr; in FindElfSection() 44 char *n = elf_strptr(elf, shstrndx, shdr.sh_name); in FindElfSection() 46 LOG(ERROR) << "Couldn't get string: " << shdr.sh_name << " " << shstrndx; in FindElfSection()
|
/external/elfutils/libebl/ |
D | eblsectionstripp.c | 56 size_t shstrndx; in ebl_section_strip_p() local 57 if (elf_getshdrstrndx (ebl->elf, &shstrndx) != 0) in ebl_section_strip_p() 59 const char *s_l = elf_strptr (ebl->elf, shstrndx, in ebl_section_strip_p()
|
/external/elfutils/libdwelf/ |
D | dwelf_elf_gnu_debuglink.c | 38 size_t shstrndx; in dwelf_elf_gnu_debuglink() local 39 if (elf_getshdrstrndx (elf, &shstrndx) < 0) in dwelf_elf_gnu_debuglink() 50 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); in dwelf_elf_gnu_debuglink()
|
D | dwelf_elf_gnu_build_id.c | 68 size_t shstrndx = SHN_UNDEF; in find_elf_build_id() local 113 else if (__libdwfl_relocate_value (mod, elf, &shstrndx, in find_elf_build_id()
|
/external/elfutils/libelf/ |
D | elf32_checksum.c | 56 size_t shstrndx; in elfw2() local 66 if (INTUSE(elf_getshdrstrndx) (elf, &shstrndx) < 0) in elfw2() 107 INTUSE(elf_strptr) (elf, shstrndx, shdr->sh_name), in elfw2()
|
/external/elfutils/libdwfl/ |
D | relocate.c | 43 __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf, size_t *shstrndx, in __libdwfl_relocate_value() argument 62 if (*shstrndx == SHN_UNDEF in __libdwfl_relocate_value() 63 && unlikely (elf_getshdrstrndx (elf, shstrndx) < 0)) in __libdwfl_relocate_value() 66 const char *name = elf_strptr (elf, *shstrndx, refshdr->sh_name); in __libdwfl_relocate_value() 501 size_t shstrndx, struct reloc_symtab_cache *reloc_symtab, in relocate_section() argument 512 const char *tname = elf_strptr (relocated, shstrndx, tshdr->sh_name); in relocate_section() 538 const char *sname = elf_strptr (relocated, shstrndx, shdr->sh_name); in relocate_section() 804 size_t shstrndx; in __libdwfl_relocate_section() local 805 if (elf_getshdrstrndx (relocated, &shstrndx) < 0) in __libdwfl_relocate_section() 820 return relocate_section (mod, relocated, ehdr, shstrndx, &reloc_symtab, in __libdwfl_relocate_section()
|
D | derelocate.c | 88 size_t shstrndx; in cache_sections() local 89 if (unlikely (elf_getshdrstrndx (mod->main.elf, &shstrndx) < 0)) in cache_sections() 110 if (__libdwfl_relocate_value (mod, mod->main.elf, &shstrndx, in cache_sections() 121 const char *name = elf_strptr (mod->main.elf, shstrndx, in cache_sections()
|
D | dwfl_module_getdwarf.c | 277 size_t shstrndx; in find_prelink_address_sync() local 278 if (elf_getshdrstrndx (mod->main.elf, &shstrndx) < 0) in find_prelink_address_sync() 292 const char *secname = elf_strptr (mod->main.elf, shstrndx, in find_prelink_address_sync() 944 size_t shstrndx; in find_aux_sym() local 945 if (elf_getshdrstrndx (elf, &shstrndx) < 0) in find_aux_sym() 956 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); in find_aux_sym() 1157 size_t shstrndx; in find_symtab() local 1158 if (elf_getshdrstrndx (mod->symfile->elf, &shstrndx) < 0) in find_symtab() 1161 const char *sname = elf_strptr (mod->symfile->elf, shstrndx, shdr->sh_name); in find_symtab()
|
/external/elfutils/tests/ |
D | elfcopy.c | 139 size_t shstrndx; in copy_elf() local 140 if (elf_getshdrstrndx (elfa, &shstrndx) < 0) in copy_elf() 145 if (setshstrndx (elfb, shstrndx) < 0) in copy_elf()
|
D | emptyfile.c | 240 size_t shstrndx; in check_elf() local 241 if (elf_getshdrstrndx (elf, &shstrndx) < 0) in check_elf() 247 const char *sname = elf_strptr (elf, shstrndx, shdr->sh_name); in check_elf()
|
D | addsections.c | 97 size_t shstrndx; in add_sections() local 98 if (elf_getshdrstrndx (elf, &shstrndx) < 0) in add_sections() 104 Elf_Scn *shstrtab_scn = elf_getscn (elf, shstrndx); in add_sections()
|
/external/libunwind/src/dwarf/ |
D | Gfind_proc_info-lsb.c | 99 Elf_W (Half) shstrndx; in load_debug_frame() 121 shstrndx = ehdr.e_shstrndx; in load_debug_frame() 129 || shstrndx >= ehdr.e_shnum) in load_debug_frame() 133 (long) sec_hdrs[shstrndx].sh_size); in load_debug_frame() 134 size_t sec_size = sec_hdrs[shstrndx].sh_size; in load_debug_frame() 136 fseek (f, sec_hdrs[shstrndx].sh_offset, SEEK_SET); in load_debug_frame()
|