/titanic_51/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 167 sh[i].sh_link < 1 || sh[i].sh_link >= h.e_shnum || in __fex_read_syms() 168 sh[sh[i].sh_link].sh_type != SHT_STRTAB || in __fex_read_syms() 169 sh[sh[i].sh_link].sh_size == 0) in __fex_read_syms() 176 size = (int) (sh[i].sh_size + sh[sh[i].sh_link].sh_size); in __fex_read_syms() 193 lseek(fd, sh[sh[i].sh_link].sh_offset, SEEK_SET) != in __fex_read_syms() 194 sh[sh[i].sh_link].sh_offset || in __fex_read_syms() 195 read(fd, stbuf + sh[i].sh_size, sh[sh[i].sh_link].sh_size) != in __fex_read_syms() 196 sh[sh[i].sh_link].sh_size) in __fex_read_syms()
|
/titanic_51/usr/src/cmd/sgs/libld/common/ |
H A D | groups.c | 175 * Confirm that the sh_link points to a valid section. in ld_group_process() 177 if ((gshdr->sh_link == SHN_UNDEF) || in ld_group_process() 178 (gshdr->sh_link >= gifl->ifl_shnum) || in ld_group_process() 179 ((isc = gifl->ifl_isdesc[gshdr->sh_link]) == NULL)) { in ld_group_process() 182 gisc->is_name, EC_XWORD(gshdr->sh_link)); in ld_group_process() 202 ((isc = gifl->ifl_isdesc[sshdr->sh_link]) == NULL)) { in ld_group_process()
|
H A D | order.c | 72 * To do this, it uses both the sh_link, and sh_info fields: 74 * sh_link 76 * The sh_link field of an SHF_ORDERED section forms a linked list of 79 * with a sh_link that points at itself. All input sections in this list 105 * SHF_LINK_ORDER is a simplification of SHF_ORDERED. It uses sh_link to specify 147 * The sh_link field of an SHF_ORDERED section forms a linked list of 148 * sections. The list is terminated by a final section with a sh_link 188 isp2_ndx = isp1->is_shdr->sh_link; in validate_shf_ordered_dest() 304 * SHF_ORDERED uses sh_info, while SHF_LINK_ORDER uses sh_link. in ld_process_ordered() 310 isp->is_shdr->sh_info : isp->is_shdr->sh_link; in ld_process_ordered() [all...] |
H A D | update.c | 1934 * sh_link contains the section index of the associated in update_osym() 1942 shdr->sh_link = (Word)elf_ndxscn(ofl->ofl_osstrtab->os_scn); in update_osym() 1944 ofl->ofl_ossymshndx->os_shdr->sh_link = in update_osym() 1965 shdr->sh_link = (Word)elf_ndxscn(ofl->ofl_osdynstr->os_scn); in update_osym() 1967 ofl->ofl_oshash->os_shdr->sh_link = in update_osym() 1972 shdr->sh_link = in update_osym() 2001 shdr->sh_link = (Word)elf_ndxscn(ofl->ofl_osdynstr->os_scn); in update_osym() 2005 shdr->sh_link = in update_osym() 2019 ofl->ofl_osdynsymsort->os_shdr->sh_link = in update_osym() 2034 ofl->ofl_osdyntlssort->os_shdr->sh_link in update_osym() [all...] |
/titanic_51/usr/src/cmd/sgs/mcs/common/ |
H A D | file.c | 517 if ((tmp_shdr.sh_link < shnum) && in traverse_file() 518 (tmp_shdr.sh_link != SHN_UNDEF) && in traverse_file() 519 (tmp_shdr.sh_link != shstrndx) && in traverse_file() 520 (GET_LOC(state->sec_table[tmp_shdr.sh_link].flags) == in traverse_file() 522 state->sec_table[tmp_shdr.sh_link].secno = in traverse_file() 527 SET_ACTION(state->sec_table[tmp_shdr.sh_link].flags, in traverse_file() 529 state->off_table[tmp_shdr.sh_link] = 0; in traverse_file() 787 * The sh_link field may have special values so in build_file() 790 if ((src_shdr.sh_link >= shnum) || in build_file() 791 (src_shdr.sh_link in build_file() [all...] |
/titanic_51/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | shdr.c | 53 SHDR_CMD_T_SH_LINK = 6, /* shdr:sh_link */ 110 /* sh_link given as section name */ 112 /* sh_link given as section type */ 299 EC_WORD(shdr->sh_link)); in print_shdr() 576 Word sh_link; in cmd_body() local 579 sh_link = elfedit_name_to_shndx(obj_state, in cmd_body() 582 sh_link = elfedit_type_to_shndx(obj_state, in cmd_body() 586 sh_link = elfedit_atoui(argstate.argv[1], NULL); in cmd_body() 588 if (shdr->sh_link == sh_link) { in cmd_body() [all...] |
H A D | ehdr.c | 549 * value from shdr[0].sh_link in print_ehdr() 553 os_secarr[0].sec_shdr->sh_link; in print_ehdr() 1116 Word sh_link; in cmd_body() local 1146 sh_link = shstrndx; in cmd_body() 1149 sh_link = 0; in cmd_body() 1163 if (shdr0->sh_link == sh_link) { in cmd_body() 1167 EC_WORD(shdr0->sh_link)); in cmd_body() 1172 EC_WORD(shdr0->sh_link), sh_link); in cmd_body() [all...] |
H A D | shdr.msg | 137 Integer value to set for symbol sh_link field. The meaning\n\ 266 The shdr:sh_link command is used to display or alter the\n\ 267 sh_link field of the specified section.\n\ 269 sh_link contains extra information, the interpretation\n\ 272 If shdr:sh_link is called without arguments, the value\n\ 273 of sh_link for every section in the section header array\n\ 276 present, the sh_link field of the section at the specified\n\ 390 @ MSG_CMD_SH_LINK "sh_link"
|
/titanic_51/usr/src/cmd/sgs/elfdump/common/ |
H A D | elfdump.c | 319 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) { in stringtbl() 321 file, cache[ndx].c_name, EC_WORD(shdr->sh_link)); in stringtbl() 343 ndx = shdr->sh_link; in stringtbl() 358 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) { in stringtbl() 360 file, cache[ndx].c_name, EC_WORD(shdr->sh_link)); in stringtbl() 365 *strsec = &cache[shdr->sh_link]; in stringtbl() 420 if ((shdr->sh_link == 0) || (shdr->sh_link > in symlookup() [all...] |
H A D | fake_shdr.c | 947 sec->shdr->sh_link = 0; in get_data() 953 * Some sections define special meanings for sh_link and sh_info. in get_data() 957 sec->shdr->sh_link = SINFO_T_DYNSTR; in get_data() 961 sec->shdr->sh_link = SINFO_T_DYNSTR; in get_data() 966 sec->shdr->sh_link = SINFO_T_DYNSTR; in get_data() 979 sec->shdr->sh_link = SINFO_T_DYNSYM; in get_data() 984 sec->shdr->sh_link = SINFO_T_DYNSTR; in get_data() 989 sec->shdr->sh_link = SINFO_T_DYNSYM; in get_data() 995 sec->shdr->sh_link = SINFO_T_LDYNSYM; in get_data() 1086 * and the sh_link/sh_inf in fake_shdr_cache() [all...] |
/titanic_51/usr/src/lib/libproc/common/ |
H A D | Psymtab_machelf32.c | 497 sp->sh_link = 0; in fake_elf64() 518 sp->sh_link = dynstr_shndx; in fake_elf64() 546 sp->sh_link = dynstr_shndx; in fake_elf64() 572 sp->sh_link = 0; in fake_elf64() 596 sp->sh_link = dynstr_shndx; in fake_elf64() 692 sp->sh_link = 0; in fake_elf64()
|
/titanic_51/usr/src/cmd/sgs/libelf/demo/ |
H A D | dcom.c | 229 tshdr.sh_link = shndx[shdr.sh_link]; in delete_comment() 275 * store the shstrndx in Shdr[0].sh_link in delete_comment() 290 shdr0.sh_link = shndx[shstrndx]; in delete_comment()
|
H A D | dispsyms.c | 174 * and it's shdr.sh_link points to the in print_symtab() 180 (_shdr.sh_link == symscnndx) && in print_symtab() 269 elf_strptr(elf, shdr.sh_link, sym.st_name)); in print_symtab()
|
/titanic_51/usr/src/lib/libtnfctl/ |
H A D | traverse.c | 171 sym_scn = elf_getscn(elf, rel_shdr->sh_link); in _tnfctl_traverse_rela() 192 str_scn = elf_getscn(elf, sym_shdr->sh_link); in _tnfctl_traverse_rela() 298 strs = elf_strptr(elf, shdr->sh_link, 0); in _tnfctl_traverse_dynsym()
|
/titanic_51/usr/src/cmd/sgs/dump/common/ |
H A D | dump.c | 326 reloc_symtab->p_shdr.sh_link, sym.st_name); in print_rela() 431 reloc_symtab->p_shdr.sh_link, sym.st_name); in print_rel() 551 (_shdr.sh_link == (GElf_Word)symscnndx)) { in print_symtab() 625 p_symtab->p_shdr.sh_link, in print_symtab() 629 p_symtab->p_shdr.sh_link, sym.st_name); in print_symtab() 705 EC_WORD(p->p_shdr.sh_link), in print_shdr() 798 if ((p_scns->p_shdr.sh_link == 0) || in dump_reloc_table() 800 (p_scns->p_shdr.sh_link >= (GElf_Word)shnum)) { in dump_reloc_table() 801 (void) fprintf(stderr, "%s: %s: invalid sh_link field: " in dump_reloc_table() 802 "section #: %d sh_link in dump_reloc_table() [all...] |
/titanic_51/usr/src/cmd/sgs/elfedit/common/ |
H A D | util_machelf.c | 205 * Although the string table is referenced by the sh_link field of 936 EC_WORD(strsec->sec_shdr->sh_link), in elfedit_dynstr_insert() 1003 * dynamic section, and if it exists, compare its sh_link to in elfedit_strtab_insert_test() 1011 (strsec->sec_shndx == dynsec->sec_shdr->sh_link)) { in elfedit_strtab_insert_test() 1020 if (strsec->sec_shndx == dynsec->sec_shdr->sh_link) in elfedit_strtab_insert_test() 1050 EC_WORD(strsec->sec_shdr->sh_link), strsec->sec_name); in elfedit_strtab_insert_test() 1089 * dynamic section, and if it exists, compare its sh_link to in elfedit_strtab_insert() 1097 (strsec->sec_shndx == dynsec->sec_shdr->sh_link)) { in elfedit_strtab_insert() 1106 if (strsec->sec_shndx == dynsec->sec_shdr->sh_link) in elfedit_strtab_insert() 1126 EC_WORD(strsec->sec_shdr->sh_link), strse in elfedit_strtab_insert() [all...] |
H A D | elfedit_machelf.c | 45 * referenced by the sh_link field of the given auxiliary section. 61 Word sh_link = auxsec->sec_shdr->sh_link; in get_symtab() local 65 if (symtab->symt_shndx == sh_link) in get_symtab() 74 EC_WORD(sh_link)); in get_symtab()
|
/titanic_51/usr/src/cmd/sgs/libelf/common/ |
H A D | getshstrndx.c | 61 *shstrndx = shdr0.sh_link; in elf_getshdrstrndx()
|
/titanic_51/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 373 dst->sh_link = src->sh_link; in shdr_to_gelf() 520 shstrndx = x32.sh_link; in ctf_fdcreate_int() 530 shstrndx = x64.sh_link; in ctf_fdcreate_int() 591 const GElf_Shdr *lhp = &sp[shp->sh_link]; in ctf_fdcreate_int() 593 if (shp->sh_link >= shnum) in ctf_fdcreate_int() 594 continue; /* corrupt sh_link field */ in ctf_fdcreate_int()
|
H A D | ctf_elfwrite.c | 191 shdr.sh_link = secxlate[shdr.sh_link]; in ctf_write_elf() 296 shdr.sh_link = symtab_idx; in ctf_write_elf()
|
/titanic_51/usr/src/cmd/sgs/prof/common/ |
H A D | symintOpen.c | 256 pfile_p->pf_symstr_ndx = tshd_p->sh_link; in _symintOpen() 270 pfile_p->pf_symstr_ndx = tshd_p->sh_link; in _symintOpen()
|
/titanic_51/usr/src/grub/grub-0.97/netboot/ |
H A D | i386_elf.h | 68 Elf32_Word sh_link; /* Index of a related section. */ member
|
/titanic_51/usr/src/cmd/sgs/pvs/common/ |
H A D | pvs.c | 481 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in sym_local() 578 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in gvers_need() 830 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in gvers_def() 1242 vsdata_s.vsd_sym_data = cache[shdr.sh_link].c_data; in main() 1243 (void) gelf_getshdr(cache[shdr.sh_link].c_scn, &shdr); in main() 1246 (const char *)cache[shdr.sh_link].c_data->d_buf; in main()
|
/titanic_51/usr/src/uts/common/exec/elf/ |
H A D | elf.c | 1056 *shstrndx = shdr.sh_link; in getelfhead() 1556 if (shdr->sh_link > 0 && in process_scns() 1557 shdr->sh_link < nshdrs) { in process_scns() 1559 shdr->sh_link * ehdr.e_shentsize); in process_scns() 1583 v[i].sh_link = 0; in process_scns() 1587 v[i].sh_link = in process_scns() 1590 v[i].sh_link = i + 1; in process_scns() 1620 symtab->sh_link == 0 || in process_scns() 1621 symtab->sh_link >= nshdrs) in process_scns() 1625 symtab->sh_link * ehd in process_scns() [all...] |
/titanic_51/usr/src/cmd/mdb/tools/findfp/common/ |
H A D | findsym.c | 68 if ((*symnamep = elf_strptr(elf, shdr.sh_link, in findelfsym()
|