Lines Matching refs:shstrndx

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
1538 if (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0) in section_name()
1540 return elf_strptr (ebl->elf, shstrndx, shdr->sh_name) ?: "???"; in section_name()
1560 size_t shstrndx; in handle_scngrp() local
1561 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in handle_scngrp()
1581 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), in handle_scngrp()
1597 && (str = elf_strptr (ebl->elf, shstrndx, grpshdr->sh_name)) in handle_scngrp()
1753 size_t shstrndx; in handle_dynamic() local
1762 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in handle_dynamic()
1782 elf_strptr (ebl->elf, shstrndx, glink->sh_name)); in handle_dynamic()
1967 size_t shstrndx; in handle_relocs_rel() local
1968 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in handle_relocs_rel()
1979 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), in handle_relocs_rel()
1981 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name), in handle_relocs_rel()
1994 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), in handle_relocs_rel()
2055 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name)); in handle_relocs_rel()
2112 elf_strptr (ebl->elf, shstrndx, secshdr->sh_name)); in handle_relocs_rel()
2157 size_t shstrndx; in handle_relocs_rela() local
2158 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in handle_relocs_rela()
2169 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), in handle_relocs_rela()
2171 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name), in handle_relocs_rela()
2184 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), in handle_relocs_rela()
2247 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name)); in handle_relocs_rela()
2308 elf_strptr (ebl->elf, shstrndx, secshdr->sh_name)); in handle_relocs_rela()
2334 size_t shstrndx; in print_symtab() local
2336 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in print_symtab()
2339 sname = elf_strptr (ebl->elf, shstrndx, shdr->sh_name); in print_symtab()
2411 size_t shstrndx; in handle_symtab() local
2412 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in handle_symtab()
2432 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), nsyms); in handle_symtab()
2438 elf_strptr (ebl->elf, shstrndx, glink->sh_name)); in handle_symtab()
2669 size_t shstrndx; in handle_verneed() local
2670 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in handle_verneed()
2687 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), shdr->sh_info, in handle_verneed()
2691 elf_strptr (ebl->elf, shstrndx, glink->sh_name)); in handle_verneed()
2745 size_t shstrndx; in handle_verdef() local
2746 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in handle_verdef()
2764 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), in handle_verdef()
2769 elf_strptr (ebl->elf, shstrndx, glink->sh_name)); in handle_verdef()
2832 size_t shstrndx; in handle_versym() local
2833 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in handle_versym()
3068 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), in handle_versym()
3073 elf_strptr (ebl->elf, shstrndx, glink->sh_name)); in handle_versym()
3117 print_hash_info (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr, size_t shstrndx, in print_hash_info() argument
3143 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), in print_hash_info()
3149 elf_strptr (ebl->elf, shstrndx, glink->sh_name)); in print_hash_info()
3194 handle_sysv_hash (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr, size_t shstrndx) in handle_sysv_hash() argument
3248 print_hash_info (ebl, scn, shdr, shstrndx, maxlength, nbucket, nsyms, in handle_sysv_hash()
3258 handle_sysv_hash64 (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr, size_t shstrndx) in handle_sysv_hash64() argument
3314 print_hash_info (ebl, scn, shdr, shstrndx, maxlength, nbucket, nsyms, in handle_sysv_hash64()
3323 handle_gnu_hash (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr, size_t shstrndx) in handle_gnu_hash() argument
3416 print_hash_info (ebl, scn, shdr, shstrndx, maxlength, nbucket, nsyms, in handle_gnu_hash()
3430 size_t shstrndx; in handle_hash() local
3431 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in handle_hash()
3461 handle_sysv_hash64 (ebl, scn, shdr, shstrndx); in handle_hash()
3463 handle_sysv_hash (ebl, scn, shdr, shstrndx); in handle_hash()
3466 handle_gnu_hash (ebl, scn, shdr, shstrndx); in handle_hash()
3480 size_t shstrndx; in print_liblist() local
3481 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in print_liblist()
3500 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), in print_liblist()
3543 size_t shstrndx; in print_attributes() local
3544 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in print_attributes()
3562 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), in print_attributes()
6518 size_t shstrndx; in print_debug_frame_section() local
6520 (void) elf_getshdrstrndx (ebl->elf, &shstrndx); in print_debug_frame_section()
6521 const char *scnname = elf_strptr (ebl->elf, shstrndx, shdr->sh_name); in print_debug_frame_section()
11103 size_t shstrndx; in print_debug() local
11104 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in print_debug()
11124 const char *name = elf_strptr (ebl->elf, shstrndx, in print_debug()
11198 const char *name = elf_strptr (ebl->elf, shstrndx, in print_debug()
12288 size_t shstrndx; in handle_notes() local
12289 if (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0) in handle_notes()
12306 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), in handle_notes()
12492 size_t shstrndx; in for_each_section_argument() local
12493 if (elf_getshdrstrndx (elf, &shstrndx) < 0) in for_each_section_argument()
12517 name = elf_strptr (elf, shstrndx, shdr_mem.sh_name); in for_each_section_argument()
12528 name = elf_strptr (elf, shstrndx, shdr_mem.sh_name); in for_each_section_argument()
12560 size_t shstrndx; in print_strings() local
12561 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)) in print_strings()
12578 name = elf_strptr (ebl->elf, shstrndx, shdr_mem.sh_name); in print_strings()