Home
last modified time | relevance | path

Searched refs:shstrndx (Results 1 – 16 of 16) sorted by relevance

/titanic_50/usr/src/cmd/sgs/libelf/common/
H A Dgetshstrndx.c45 elf_getshdrstrndx(Elf *elf, size_t *shstrndx) in elf_getshdrstrndx() argument
54 *shstrndx = ehdr.e_shstrndx; in elf_getshdrstrndx()
61 *shstrndx = shdr0.sh_link; in elf_getshdrstrndx()
66 elf_getshstrndx(Elf *elf, size_t *shstrndx) in elf_getshstrndx() argument
68 return (elf_getshdrstrndx(elf, shstrndx) == 0); in elf_getshstrndx()
/titanic_50/usr/src/cmd/sgs/nm/common/
H A Dnm.c539 size_t shstrndx; in get_symtab() local
541 if (elf_getshdrstrndx(elf_file, &shstrndx) == -1) { in get_symtab()
549 scnfd = get_scnfd(elf_file, shstrndx, SHT_STRTAB); in get_symtab()
583 print_symtab(elf_file, shstrndx, scn, in get_symtab()
668 print_symtab(Elf *elf_file, unsigned int shstrndx, in print_symtab() argument
731 print_with_pflag(ndigits, elf_file, shstrndx, in print_symtab()
734 print_with_Pflag(ndigits, elf_file, shstrndx, in print_symtab()
738 shstrndx, sym_data, filename); in print_symtab()
762 is_bss_section(unsigned int shndx, Elf * elf_file, unsigned int shstrndx) in is_bss_section() argument
770 sym_name = elf_strptr(elf_file, shstrndx, shdr.sh_name); in is_bss_section()
[all …]
/titanic_50/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c92 size_t shstrndx, shnum, phnum; in delete_comment() local
108 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { in delete_comment()
140 if (strcmp(CommentStr, elf_strptr(elf, shstrndx, in delete_comment()
267 if (shndx[shstrndx] < SHN_LORESERVE) in delete_comment()
268 tehdr.e_shstrndx = shndx[shstrndx]; in delete_comment()
290 shdr0.sh_link = shndx[shstrndx]; in delete_comment()
H A Dacom.c51 size_t shstrndx; in update_comment() local
53 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { in update_comment()
70 if (strcmp(CommentStr, elf_strptr(elf, shstrndx, in update_comment()
83 if ((scn = elf_getscn(elf, shstrndx)) == NULL) { in update_comment()
H A Dpcom.c52 size_t shstrndx; in print_comment() local
57 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { in print_comment()
74 if (strcmp(CommentStr, elf_strptr(elf, shstrndx, in print_comment()
H A Dtpcom.c72 size_t shstrndx; in print_comment() local
74 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { in print_comment()
92 if (strcmp(CommentStr, elf_strptr(elf, shstrndx, in print_comment()
H A Ddispsyms.c75 size_t shstrndx; in print_symtab() local
84 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { in print_symtab()
120 elf_strptr(elf, shstrndx, shdr.sh_name)); in print_symtab()
/titanic_50/usr/src/lib/libctf/common/
H A Dctf_lib.c421 size_t shstrndx, shnum; in ctf_fdcreate_int() local
507 shstrndx = hdr.e64.e_shstrndx; in ctf_fdcreate_int()
510 if ((shstrndx == SHN_XINDEX) || (shnum == 0)) { in ctf_fdcreate_int()
520 shstrndx = x32.sh_link; in ctf_fdcreate_int()
530 shstrndx = x64.sh_link; in ctf_fdcreate_int()
534 if (shstrndx >= shnum) in ctf_fdcreate_int()
571 strs_mapsz = sp[shstrndx].sh_size + in ctf_fdcreate_int()
572 (sp[shstrndx].sh_offset & ~_PAGEMASK); in ctf_fdcreate_int()
575 fd, sp[shstrndx].sh_offset & _PAGEMASK); in ctf_fdcreate_int()
578 (sp[shstrndx].sh_offset & ~_PAGEMASK); in ctf_fdcreate_int()
[all …]
/titanic_50/usr/src/cmd/boot/symdef/
H A Dsymdef.c64 size_t shstrndx; in main() local
90 (elf_getshstrndx(elfp, &shstrndx) == 0)) in main()
/titanic_50/usr/src/cmd/sgs/mcs/common/
H A Dfile.c326 size_t shstrndx, shnum; in traverse_file() local
334 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { in traverse_file()
356 name = elf_strptr(elf, shstrndx, (size_t)shdr->sh_name); in traverse_file()
389 temp_name = elf_strptr(elf, shstrndx, in traverse_file()
519 (tmp_shdr.sh_link != shstrndx) && in traverse_file()
692 size_t shnum, shstrndx; in build_file() local
699 if (elf_getshdrstrndx(src_elf, &shstrndx) == -1) { in build_file()
732 if ((shstrndx != SHN_UNDEF) && in build_file()
733 (state->sec_table[shstrndx].secno == (GElf_Word)DELETED)) in build_file()
967 (scn_no == shstrndx) && in build_file()
[all …]
/titanic_50/usr/src/uts/common/exec/elf/
H A Delf.c182 int nshdrs, shstrndx, nphdrs; in mapexec_brand() local
200 if ((error = getelfhead(vp, CRED(), ehdr, &nshdrs, &shstrndx, in mapexec_brand()
293 int nshdrs, shstrndx, nphdrs; in elfexec() local
309 if ((error = getelfhead(vp, CRED(), ehdrp, &nshdrs, &shstrndx, in elfexec()
683 &shstrndx, &nphdrs)) != 0 || in elfexec()
997 getelfhead(vnode_t *vp, cred_t *credp, Ehdr *ehdr, int *nshdrs, int *shstrndx, in getelfhead() argument
1033 *shstrndx = ehdr->e_shstrndx; in getelfhead()
1042 *shstrndx == SHN_XINDEX || *nphdrs == PN_XNUM) { in getelfhead()
1055 if (*shstrndx == SHN_XINDEX) in getelfhead()
1056 *shstrndx = shdr.sh_link; in getelfhead()
[all …]
/titanic_50/usr/src/cmd/sgs/elfedit/modules/common/
H A Dehdr.c1112 Word shstrndx; in cmd_body() local
1124 shstrndx = elfedit_atoshndx(argstate.argv[0], in cmd_body()
1127 shstrndx = elfedit_type_to_shndx(obj_state, in cmd_body()
1131 shstrndx = elfedit_name_to_shndx(obj_state, in cmd_body()
1135 if ((shstrndx >= obj_state->os_shnum) || in cmd_body()
1136 ((shstrndx >= SHN_LORESERVE) && in cmd_body()
1137 (shstrndx <= SHN_HIRESERVE)) || in cmd_body()
1138 (obj_state->os_secarr[shstrndx].sec_shdr->sh_type != in cmd_body()
1142 EC_WORD(shstrndx)); in cmd_body()
1144 if (shstrndx >= SHN_LORESERVE) { in cmd_body()
[all …]
/titanic_50/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c4463 shdr_cache(const char *file, Elf *elf, Ehdr *ehdr, size_t shstrndx, in shdr_cache() argument
4479 if (shstrndx == SHN_UNDEF) { in shdr_cache()
4486 } else if ((scn = elf_getscn(elf, shstrndx)) == NULL) { in shdr_cache()
4489 EC_XWORD(shstrndx)); in shdr_cache()
4494 EC_XWORD(shstrndx)); in shdr_cache()
4780 size_t shstrndx, size_t *shnum, uint_t *flags) in create_cache() argument
4797 if (shdr_cache(file, elf, ehdr, shstrndx, *shnum, in create_cache()
4812 size_t ndx, shstrndx, shnum, phnum; in regular() local
4829 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { in regular()
4927 shstrndx, &shnum, &flags) == 0) { in regular()
[all …]
/titanic_50/usr/src/cmd/sgs/ar/common/
H A Dfile.c559 size_t shstrndx = 0; in mksymtab() local
565 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { in mksymtab()
585 scn = elf_getscn(elf, shstrndx); in mksymtab()
/titanic_50/usr/src/lib/libproc/common/
H A DPsymtab.c1549 size_t shstrndx; in build_fake_elf() local
1557 elf_getshdrstrndx(elf, &shstrndx) == -1 || in build_fake_elf()
1558 (scn = elf_getscn(elf, shstrndx)) == NULL || in build_fake_elf()
1584 size_t nshdrs, shstrndx; in Pbuild_file_symtab() local
1660 elf_getshdrstrndx(elf, &shstrndx) == -1 || in Pbuild_file_symtab()
1661 (scn = elf_getscn(elf, shstrndx)) == NULL || in Pbuild_file_symtab()
/titanic_50/usr/src/cmd/sgs/dump/common/
H A Ddump.c1660 size_t shstrndx; in dump_section_table() local
1670 if (elf_getshdrstrndx(elf_file, &shstrndx) == -1) { in dump_section_table()
1698 elf_strptr(elf_file, shstrndx, buffer->p_shdr.sh_name); in dump_section_table()