/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | getshstrndx.c | 45 elf_getshdrstrndx(Elf *elf, size_t *shstrndx) argument 54 *shstrndx = ehdr.e_shstrndx; 61 *shstrndx = shdr0.sh_link; 66 elf_getshstrndx(Elf *elf, size_t *shstrndx) argument 68 return (elf_getshdrstrndx(elf, shstrndx) == 0);
|
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | acom.c | 51 size_t shstrndx; local 53 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { 70 if (strcmp(CommentStr, elf_strptr(elf, shstrndx, 83 if ((scn = elf_getscn(elf, shstrndx)) == NULL) {
|
H A D | pcom.c | 52 size_t shstrndx; local 57 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { 74 if (strcmp(CommentStr, elf_strptr(elf, shstrndx,
|
H A D | dcom.c | 92 size_t shstrndx, shnum, phnum; local 108 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { 140 if (strcmp(CommentStr, elf_strptr(elf, shstrndx, 267 if (shndx[shstrndx] < SHN_LORESERVE) 268 tehdr.e_shstrndx = shndx[shstrndx]; 275 * store the shstrndx in Shdr[0].sh_link 290 shdr0.sh_link = shndx[shstrndx];
|
H A D | tpcom.c | 72 size_t shstrndx; local 74 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { 92 if (strcmp(CommentStr, elf_strptr(elf, shstrndx,
|
H A D | dispsyms.c | 75 size_t shstrndx; local 84 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { 120 elf_strptr(elf, shstrndx, shdr.sh_name));
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 196 size_t shstrndx, shnum; local 279 shstrndx = hdr.e64.e_shstrndx; 282 if ((shstrndx == SHN_XINDEX) || (shnum == 0)) { 292 shstrndx = x32.sh_link; 302 shstrndx = x64.sh_link; 306 if (shstrndx >= shnum) 343 strs_mapsz = sp[shstrndx].sh_size + 344 (sp[shstrndx].sh_offset & ~_PAGEMASK); 347 fd, sp[shstrndx].sh_offset & _PAGEMASK); 350 (sp[shstrndx] [all...] |
/illumos-gate/usr/src/cmd/boot/symdef/ |
H A D | symdef.c | 64 size_t shstrndx; local 90 (elf_getshstrndx(elfp, &shstrndx) == 0))
|
/illumos-gate/usr/src/cmd/sgs/nm/common/ |
H A D | nm.c | 539 size_t shstrndx; local 541 if (elf_getshdrstrndx(elf_file, &shstrndx) == -1) { 549 scnfd = get_scnfd(elf_file, shstrndx, SHT_STRTAB); 583 print_symtab(elf_file, shstrndx, scn, 668 print_symtab(Elf *elf_file, unsigned int shstrndx, argument 731 print_with_pflag(ndigits, elf_file, shstrndx, 734 print_with_Pflag(ndigits, elf_file, shstrndx, 738 shstrndx, sym_data, filename); 762 is_bss_section(unsigned int shndx, Elf * elf_file, unsigned int shstrndx) argument 770 sym_name = elf_strptr(elf_file, shstrndx, shd 1046 print_brief_sym_type(Elf *elf_file, unsigned int shstrndx, SYM *sym_data) argument 1097 print_with_pflag( int ndigits, Elf *elf_file, unsigned int shstrndx, SYM *sym_data, char *filename ) argument 1151 print_with_Pflag( int ndigits, Elf *elf_file, unsigned int shstrndx, SYM *sym_data ) argument 1203 print_with_otherflags( int ndigits, Elf *elf_file, unsigned int shstrndx, SYM *sym_data, char *filename ) argument [all...] |
/illumos-gate/usr/src/cmd/sgs/mcs/common/ |
H A D | file.c | 326 size_t shstrndx, shnum; local 334 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { 356 name = elf_strptr(elf, shstrndx, (size_t)shdr->sh_name); 389 temp_name = elf_strptr(elf, shstrndx, 519 (tmp_shdr.sh_link != shstrndx) && 692 size_t shnum, shstrndx; local 699 if (elf_getshdrstrndx(src_elf, &shstrndx) == -1) { 732 if ((shstrndx != SHN_UNDEF) && 733 (state->sec_table[shstrndx].secno == (GElf_Word)DELETED)) 967 (scn_no == shstrndx) [all...] |
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | ehdr.c | 1112 Word shstrndx; local 1124 shstrndx = elfedit_atoshndx(argstate.argv[0], 1127 shstrndx = elfedit_type_to_shndx(obj_state, 1131 shstrndx = elfedit_name_to_shndx(obj_state, 1135 if ((shstrndx >= obj_state->os_shnum) || 1136 ((shstrndx >= SHN_LORESERVE) && 1137 (shstrndx <= SHN_HIRESERVE)) || 1138 (obj_state->os_secarr[shstrndx].sec_shdr->sh_type != 1142 EC_WORD(shstrndx)); 1144 if (shstrndx > [all...] |
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | elf.c | 215 int nshdrs, shstrndx, nphdrs; local 233 if ((error = getelfhead(vp, CRED(), ehdr, &nshdrs, &shstrndx, 328 int nshdrs, shstrndx, nphdrs; local 344 if ((error = getelfhead(vp, CRED(), ehdrp, &nshdrs, &shstrndx, 771 &shstrndx, &nphdrs)) != 0 || 1068 getelfhead(vnode_t *vp, cred_t *credp, Ehdr *ehdr, int *nshdrs, int *shstrndx, argument 1104 *shstrndx = ehdr->e_shstrndx; 1113 *shstrndx == SHN_XINDEX || *nphdrs == PN_XNUM) { 1126 if (*shstrndx == SHN_XINDEX) 1127 *shstrndx 1194 getelfshdr(vnode_t *vp, cred_t *credp, const Ehdr *ehdr, int nshdrs, int shstrndx, caddr_t *shbasep, ssize_t *shsizep, char **shstrbasep, ssize_t *shstrsizep) argument 1603 int nshdrs, shstrndx, nphdrs; local [all...] |
/illumos-gate/usr/src/cmd/sgs/ar/common/ |
H A D | file.c | 559 size_t shstrndx = 0; local 565 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { 585 scn = elf_getscn(elf, shstrndx);
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | elfdump.c | 4544 shdr_cache(const char *file, Elf *elf, Ehdr *ehdr, size_t shstrndx, argument 4560 if (shstrndx == SHN_UNDEF) { 4567 } else if ((scn = elf_getscn(elf, shstrndx)) == NULL) { 4570 EC_XWORD(shstrndx)); 4575 EC_XWORD(shstrndx)); 4861 size_t shstrndx, size_t *shnum, uint_t *flags) 4878 if (shdr_cache(file, elf, ehdr, shstrndx, *shnum, 4893 size_t ndx, shstrndx, shnum, phnum; local 4910 if (elf_getshdrstrndx(elf, &shstrndx) == -1) { 5008 shstrndx, 4860 create_cache(const char *file, int fd, Elf *elf, Ehdr *ehdr, Cache **cache, size_t shstrndx, size_t *shnum, uint_t *flags) argument [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab.c | 1549 size_t shstrndx; local 1557 elf_getshdrstrndx(elf, &shstrndx) == -1 || 1558 (scn = elf_getscn(elf, shstrndx)) == NULL || 1584 size_t nshdrs, shstrndx; local 1660 elf_getshdrstrndx(elf, &shstrndx) == -1 || 1661 (scn = elf_getscn(elf, shstrndx)) == NULL ||
|
/illumos-gate/usr/src/cmd/sgs/dump/common/ |
H A D | dump.c | 1661 size_t shstrndx; local 1671 if (elf_getshdrstrndx(elf_file, &shstrndx) == -1) { 1699 elf_strptr(elf_file, shstrndx, buffer->p_shdr.sh_name);
|