/third_party/elfutils/src/ |
D | objdump.c | 345 Elf_Data *xndxdata, size_t symstrndx, size_t shstrndx, in show_relocs_x() argument 382 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name)); in show_relocs_x() 402 size_t shstrndx) in show_relocs_rel() argument 414 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rel() 423 size_t shstrndx) in show_relocs_rela() argument 435 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rela() 442 section_match (Elf *elf, uint32_t scnndx, GElf_Shdr *shdr, size_t shstrndx) in section_match() argument 448 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); in section_match() 472 show_relocs (Ebl *ebl, const char *fname, uint32_t shstrndx) in show_relocs() argument 487 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx)) in show_relocs() [all …]
|
D | size.c | 394 size_t shstrndx; in show_sysv() local 395 if (unlikely (elf_getshdrstrndx (elf, &shstrndx) < 0)) in show_sysv() 409 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); in show_sysv() 440 maxlen, elf_strptr (elf, shstrndx, shdr->sh_name), in show_sysv() 465 size_t shstrndx; in show_sysv_one_line() local 466 if (unlikely (elf_getshdrstrndx (elf, &shstrndx) < 0)) in show_sysv_one_line() 492 shdr->sh_size, elf_strptr (elf, shstrndx, shdr->sh_name)); in show_sysv_one_line()
|
D | readelf.c | 643 size_t shstrndx; in open_input_section() local 661 if (elf_getshdrstrndx (elf, &shstrndx) < 0) in open_input_section() 686 const char *sname = elf_strptr (elf, shstrndx, shdr->sh_name); in open_input_section() 1247 size_t shstrndx; in print_shdr() local 1263 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in print_shdr() 1331 sname = elf_strptr (ebl->elf, shstrndx, shdr->sh_name) ?: "<corrupt>"; in print_shdr() 1469 size_t shstrndx; in print_phdr() local 1470 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in print_phdr() 1572 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in print_phdr() 1595 size_t shstrndx; in section_name() local [all …]
|
D | strip.c | 373 size_t shstrndx; in secndx_name() local 377 if (shdr == NULL || elf_getshdrstrndx (elf, &shstrndx) < 0) in secndx_name() 379 return elf_strptr (elf, shstrndx, shdr->sh_name) ?: "???"; in secndx_name() 568 const char *fname, size_t shstrndx) in remove_debug_relocations() argument 593 const char *tname = elf_strptr (elf, shstrndx, in remove_debug_relocations() 843 GElf_Ehdr *ehdr, const char *fname, size_t shstrndx, in handle_debug_relocs() argument 907 if (update_shdrstrndx (new_elf, shstrndx) != 0) in handle_debug_relocs() 914 remove_debug_relocations (ebl, new_elf, ehdr, fname, shstrndx); in handle_debug_relocs() 994 size_t shstrndx; in handle_elf() local 1090 if (unlikely (elf_getshdrstrndx (elf, &shstrndx) < 0)) in handle_elf() [all …]
|
D | nm.c | 740 size_t shstrndx; in show_symbols_sysv() local 741 if (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0) in show_symbols_sysv() 758 name = elf_strptr (ebl->elf, shstrndx, shdr->sh_name); in show_symbols_sysv() 1232 size_t shstrndx; in show_symbols() local 1233 if (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0) in show_symbols() 1247 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_symbols() 1252 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_symbols() 1332 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_symbols()
|
D | elflint.c | 119 static uint32_t shstrndx; variable 312 ret = elf_strptr (ebl->elf, shstrndx, shdr->sh_name); in section_name() 416 shstrndx = ehdr->e_shstrndx; in check_elf_header() 451 shstrndx = shdr->sh_link; in check_elf_header() 453 else if (shstrndx >= shnum) in check_elf_header() 962 shstrndx, in check_symtab() 983 : elf_strptr (ebl->elf, shstrndx, in check_symtab() 2400 hash_idx, elf_strptr (ebl->elf, shstrndx, hash_shdr->sh_name), in compare_hash_gnu_hash() 2402 elf_strptr (ebl->elf, shstrndx, gnu_hash_shdr->sh_name)); in compare_hash_gnu_hash() 2417 hash_name = elf_strptr (ebl->elf, shstrndx, hash_shdr->sh_name); in compare_hash_gnu_hash() [all …]
|
D | elfclassify.c | 292 size_t shstrndx; in run_classify() local 293 if (unlikely (elf_getshdrstrndx (elf, &shstrndx) < 0)) in run_classify() 312 const char *section_name = elf_strptr (elf, shstrndx, shdr->sh_name); in run_classify()
|
/third_party/elfutils/libdw/ |
D | dwarf_begin_elf.c | 74 scn_dwarf_type (Dwarf *result, size_t shstrndx, Elf_Scn *scn) in scn_dwarf_type() argument 81 const char *scnname = elf_strptr (result->elf, shstrndx, in scn_dwarf_type() 99 check_section (Dwarf *result, size_t shstrndx, Elf_Scn *scn, bool inscngrp) in check_section() argument 129 const char *scnname = elf_strptr (result->elf, shstrndx, in check_section() 392 global_read (Dwarf *result, Elf *elf, size_t shstrndx) in global_read() argument 400 enum dwarf_type type = scn_dwarf_type (result, shstrndx, scn); in global_read() 407 result = check_section (result, shstrndx, scn, false); in global_read() 414 scngrp_read (Dwarf *result, Elf *elf, size_t shstrndx, Elf_Scn *scngrp) in scngrp_read() argument 466 enum dwarf_type type = scn_dwarf_type (result, shstrndx, scn); in scngrp_read() 475 result = check_section (result, shstrndx, scn, true); in scngrp_read() [all …]
|
D | dwarf_getcfi_elf.c | 275 size_t shstrndx; in getcfi_shdr() local 276 if (elf_getshdrstrndx (elf, &shstrndx) != 0) in getcfi_shdr() 282 if (shstrndx != 0) in getcfi_shdr() 293 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); in getcfi_shdr()
|
/third_party/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 | 74 size_t shstrndx; in aarch64_check_special_symbol() local 75 if (elf_getshdrstrndx (elf, &shstrndx) != 0) in aarch64_check_special_symbol() 77 const char *sname = elf_strptr (elf, shstrndx, destshdr->sh_name); in aarch64_check_special_symbol() 88 sname = elf_strptr (elf, shstrndx, shdr->sh_name); in aarch64_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 | 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_init.c | 76 size_t shstrndx; in ppc64_init() local 78 && elf_getshdrstrndx (elf, &shstrndx) == 0) in ppc64_init() 91 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()
|
/third_party/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()
|
/third_party/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()
|
/third_party/elfutils/libelf/ |
D | elf32_checksum.c | 55 size_t shstrndx; in elfw2() local 65 if (INTUSE(elf_getshdrstrndx) (elf, &shstrndx) < 0) in elfw2() 106 INTUSE(elf_strptr) (elf, shstrndx, shdr->sh_name), in elfw2()
|
/third_party/elfutils/libdwfl/ |
D | relocate.c | 45 __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf, size_t *shstrndx, in __libdwfl_relocate_value() argument 64 if (*shstrndx == SHN_UNDEF in __libdwfl_relocate_value() 65 && unlikely (elf_getshdrstrndx (elf, shstrndx) < 0)) in __libdwfl_relocate_value() 68 const char *name = elf_strptr (elf, *shstrndx, refshdr->sh_name); in __libdwfl_relocate_value() 503 size_t shstrndx, struct reloc_symtab_cache *reloc_symtab, in relocate_section() argument 514 const char *tname = elf_strptr (relocated, shstrndx, tshdr->sh_name); in relocate_section() 540 const char *sname = elf_strptr (relocated, shstrndx, shdr->sh_name); in relocate_section() 806 size_t shstrndx; in __libdwfl_relocate_section() local 807 if (elf_getshdrstrndx (relocated, &shstrndx) < 0) in __libdwfl_relocate_section() 822 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 | 276 size_t shstrndx; in find_prelink_address_sync() local 277 if (elf_getshdrstrndx (mod->main.elf, &shstrndx) < 0) in find_prelink_address_sync() 291 const char *secname = elf_strptr (mod->main.elf, shstrndx, in find_prelink_address_sync() 943 size_t shstrndx; in find_aux_sym() local 944 if (elf_getshdrstrndx (elf, &shstrndx) < 0) in find_aux_sym() 955 const char *name = elf_strptr (elf, shstrndx, shdr->sh_name); in find_aux_sym() 1156 size_t shstrndx; in find_symtab() local 1157 if (elf_getshdrstrndx (mod->symfile->elf, &shstrndx) < 0) in find_symtab() 1160 const char *sname = elf_strptr (mod->symfile->elf, shstrndx, shdr->sh_name); in find_symtab()
|
/third_party/elfutils/tests/ |
D | emptyfile.c | 241 size_t shstrndx; in check_elf() local 242 if (elf_getshdrstrndx (elf, &shstrndx) < 0) in check_elf() 248 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()
|
D | elfcopy.c | 141 size_t shstrndx; in copy_elf() local 142 if (elf_getshdrstrndx (elfa, &shstrndx) < 0) in copy_elf() 147 if (setshstrndx (elfb, shstrndx) < 0) in copy_elf()
|