Home
last modified time | relevance | path

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

/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/sgs/nm/common/
H A Dnm.c586 size_t shstrndx; local
588 if (elf_getshdrstrndx(elf_file, &shstrndx) == -1) {
596 scnfd = get_scnfd(elf_file, shstrndx, SHT_STRTAB);
630 print_symtab(elf_file, shstrndx, scn,
715 print_symtab(Elf *elf_file, unsigned int shstrndx, argument
780 print_with_pflag(ndigits, elf_file, shstrndx,
783 print_with_Pflag(ndigits, elf_file, shstrndx,
787 shstrndx, sym_data, filename);
1171 print_brief_sym_type(elf_file, shstrndx, sym_data);
1227 print_brief_sym_type(elf_file, shstrndx, sym_data);
[all …]
/illumos-gate/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()
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()
596 if (shp->sh_name >= sp[shstrndx].sh_size || in ctf_fdcreate_int()
[all …]
/illumos-gate/usr/src/cmd/boot/symdef/
H A Dsymdef.c62 size_t shstrndx; in main() local
88 (elf_getshstrndx(elfp, &shstrndx) == 0)) in main()
/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dfile.c329 size_t shstrndx, shnum; in traverse_file() local
337 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { in traverse_file()
392 temp_name = elf_strptr(elf, shstrndx, in traverse_file()
522 (tmp_shdr.sh_link != shstrndx) && in traverse_file()
700 size_t shnum, shstrndx; in build_file() local
707 if (elf_getshdrstrndx(src_elf, &shstrndx) == -1) { in build_file()
740 if ((shstrndx != SHN_UNDEF) && in build_file()
975 (scn_no == shstrndx) && in build_file()
1150 if ((shstrndx > 0) && (shnum > 0) && in build_file()
1151 (state->sec_table[shstrndx].secno < shnum)) { in build_file()
[all …]
/illumos-gate/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()
1142 EC_WORD(shstrndx)); in cmd_body()
1144 if (shstrndx >= SHN_LORESERVE) { in cmd_body()
1146 sh_link = shstrndx; in cmd_body()
[all …]
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c194 uint_t nshdrs, shstrndx, nphdrs; in mapexec_brand() local
309 uint_t nshdrs, shstrndx, nphdrs; in elfexec() local
787 &shstrndx, &nphdrs)) != 0 || in elfexec()
1113 uint_t *shstrndx, uint_t *nphdrs) in getelfhead() argument
1148 *shstrndx = ehdr->e_shstrndx; in getelfhead()
1157 *shstrndx == SHN_XINDEX || *nphdrs == PN_XNUM) { in getelfhead()
1171 if (*shstrndx == SHN_XINDEX) in getelfhead()
1172 *shstrndx = shdr.sh_link; in getelfhead()
1245 nshdrs == 0 || shstrndx >= nshdrs) { in getelfshdr()
1307 uint_t nshdrs, shstrndx; in elfreadhdr() local
[all …]
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c4623 shdr_cache(const char *file, Elf *elf, Ehdr *ehdr, size_t shstrndx, in shdr_cache() argument
4639 if (shstrndx == SHN_UNDEF) { in shdr_cache()
4646 } else if ((scn = elf_getscn(elf, shstrndx)) == NULL) { in shdr_cache()
4649 EC_XWORD(shstrndx)); in shdr_cache()
4654 EC_XWORD(shstrndx)); in shdr_cache()
4944 size_t shstrndx, size_t *shnum, uint_t *flags) in create_cache() argument
4961 if (shdr_cache(file, elf, ehdr, shstrndx, *shnum, in create_cache()
4976 size_t ndx, shstrndx, shnum, phnum; in regular() local
4993 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { in regular()
5091 shstrndx, &shnum, &flags) == 0) { in regular()
[all …]
/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dfile.c560 size_t shstrndx = 0; in mksymtab() local
566 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { in mksymtab()
586 scn = elf_getscn(elf, shstrndx); in mksymtab()
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab.c1583 size_t shstrndx; in build_fake_elf() local
1591 elf_getshdrstrndx(elf, &shstrndx) == -1 || in build_fake_elf()
1592 (scn = elf_getscn(elf, shstrndx)) == NULL || in build_fake_elf()
1837 size_t nshdrs, shstrndx; in Pbuild_file_symtab() local
1914 elf_getshdrstrndx(elf, &shstrndx) == -1 || in Pbuild_file_symtab()
1915 (scn = elf_getscn(elf, shstrndx)) == NULL || in Pbuild_file_symtab()
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c1661 size_t shstrndx; in dump_section_table() local
1671 if (elf_getshdrstrndx(elf_file, &shstrndx) == -1) { in dump_section_table()
1699 elf_strptr(elf_file, shstrndx, buffer->p_shdr.sh_name); in dump_section_table()