Searched refs:sh_link (Results 1 - 25 of 82) sorted by relevance

1234

/opensolaris-onvv-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetshstrndx.c61 *shstrndx = shdr0.sh_link;
/opensolaris-onvv-gate/usr/src/cmd/sgs/libld/common/
H A Dgroups.c134 * Confirm that the sh_link points to a valid section.
136 if ((gshdr->sh_link == SHN_UNDEF) ||
137 (gshdr->sh_link >= gifl->ifl_shnum) ||
138 ((isc = gifl->ifl_isdesc[gshdr->sh_link]) == NULL)) {
141 gisc->is_name, EC_XWORD(gshdr->sh_link));
161 ((isc = gifl->ifl_isdesc[sshdr->sh_link]) == NULL)) {
H A Dorder.c72 * 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;
304 * SHF_ORDERED uses sh_info, while SHF_LINK_ORDER uses sh_link.
310 isp->is_shdr->sh_info : isp->is_shdr->sh_link;
[all...]
/opensolaris-onvv-gate/usr/src/cmd/mdb/tools/findfp/common/
H A Dfindsym.c68 if ((*symnamep = elf_strptr(elf, shdr.sh_link,
/opensolaris-onvv-gate/usr/src/cmd/sgs/librtld/common/
H A Dsyms.c58 strs = (char *)cache[shdr->sh_link].c_data->d_buf;
/opensolaris-onvv-gate/usr/src/grub/grub-0.97/netboot/
H A Di386_elf.h68 Elf32_Word sh_link; /* Index of a related section. */ member in struct:__anon2332
/opensolaris-onvv-gate/usr/src/cmd/sgs/mcs/common/
H A Dfile.c517 if ((tmp_shdr.sh_link < shnum) &&
518 (tmp_shdr.sh_link != SHN_UNDEF) &&
519 (tmp_shdr.sh_link != shstrndx) &&
520 (GET_LOC(state->sec_table[tmp_shdr.sh_link].flags) ==
522 state->sec_table[tmp_shdr.sh_link].secno =
527 SET_ACTION(state->sec_table[tmp_shdr.sh_link].flags,
529 state->off_table[tmp_shdr.sh_link] = 0;
787 * The sh_link field may have special values so
790 if ((src_shdr.sh_link >= shnum) ||
791 (src_shdr.sh_link
[all...]
/opensolaris-onvv-gate/usr/src/cmd/sgs/prof/common/
H A DsymintOpen.c256 pfile_p->pf_symstr_ndx = tshd_p->sh_link;
270 pfile_p->pf_symstr_ndx = tshd_p->sh_link;
/opensolaris-onvv-gate/usr/src/cmd/boot/symdef/
H A Dsymdef.c104 (strcmp(argv[2], elf_strptr(elfp, shdr.sh_link,
/opensolaris-onvv-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c315 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
317 file, cache[ndx].c_name, EC_WORD(shdr->sh_link));
339 ndx = shdr->sh_link;
354 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
356 file, cache[ndx].c_name, EC_WORD(shdr->sh_link));
361 *strsec = &cache[shdr->sh_link];
416 if ((shdr->sh_link == 0) || (shdr->sh_link >
[all...]
H A Dfake_shdr.c947 sec->shdr->sh_link = 0;
953 * Some sections define special meanings for sh_link and sh_info.
957 sec->shdr->sh_link = SINFO_T_DYNSTR;
961 sec->shdr->sh_link = SINFO_T_DYNSTR;
966 sec->shdr->sh_link = SINFO_T_DYNSTR;
979 sec->shdr->sh_link = SINFO_T_DYNSYM;
984 sec->shdr->sh_link = SINFO_T_DYNSTR;
989 sec->shdr->sh_link = SINFO_T_DYNSYM;
995 sec->shdr->sh_link = SINFO_T_LDYNSYM;
1086 * and the sh_link/sh_inf
[all...]
/opensolaris-onvv-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dshdr.c53 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));
576 Word sh_link; local
579 sh_link = elfedit_name_to_shndx(obj_state,
582 sh_link = elfedit_type_to_shndx(obj_state,
586 sh_link = elfedit_atoui(argstate.argv[1], NULL);
588 if (shdr->sh_link == sh_link) {
[all...]
/opensolaris-onvv-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c229 tshdr.sh_link = shndx[shdr.sh_link];
275 * store the shstrndx in Shdr[0].sh_link
290 shdr0.sh_link = shndx[shstrndx];
H A Dacom.c122 shdr.sh_link = 0;
H A Ddispsyms.c174 * and it's shdr.sh_link points to the
180 (_shdr.sh_link == symscnndx) &&
269 elf_strptr(elf, shdr.sh_link, sym.st_name));
/opensolaris-onvv-gate/usr/src/lib/libtnfctl/
H A Dtraverse.c171 sym_scn = elf_getscn(elf, rel_shdr->sh_link);
192 str_scn = elf_getscn(elf, sym_shdr->sh_link);
298 strs = elf_strptr(elf, shdr->sh_link, 0);
/opensolaris-onvv-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c492 sp->sh_link = 0;
513 sp->sh_link = dynstr_shndx;
541 sp->sh_link = dynstr_shndx;
567 sp->sh_link = 0;
591 sp->sh_link = dynstr_shndx;
687 sp->sh_link = 0;
/opensolaris-onvv-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit_machelf.c44 * referenced by the sh_link field of the given auxiliary section.
60 Word sh_link = auxsec->sec_shdr->sh_link; local
64 if (symtab->symt_shndx == sh_link)
73 EC_WORD(sh_link));
H A Dutil_machelf.c205 * Although the string table is referenced by the sh_link field of
936 EC_WORD(strsec->sec_shdr->sh_link),
1003 * dynamic section, and if it exists, compare its sh_link to
1011 (strsec->sec_shndx == dynsec->sec_shdr->sh_link)) {
1020 if (strsec->sec_shndx == dynsec->sec_shdr->sh_link)
1050 EC_WORD(strsec->sec_shdr->sh_link), strsec->sec_name);
1089 * dynamic section, and if it exists, compare its sh_link to
1097 (strsec->sec_shndx == dynsec->sec_shdr->sh_link)) {
1106 if (strsec->sec_shndx == dynsec->sec_shdr->sh_link)
1126 EC_WORD(strsec->sec_shdr->sh_link), strse
[all...]
/opensolaris-onvv-gate/usr/src/cmd/sgs/libelf/misc/
H A Dnlist.c91 strtab = s_buf.sh_link;
/opensolaris-onvv-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dshdr.c55 conv_sec_linkinfo(shdr->sh_link, shdr->sh_flags, &inv_buf1),
/opensolaris-onvv-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c150 dst->sh_link = src->sh_link;
338 const GElf_Shdr *lhp = &sp[shp->sh_link];
340 if (shp->sh_link >= hdr.e64.e_shnum)
341 continue; /* corrupt sh_link field */
/opensolaris-onvv-gate/usr/src/uts/common/os/
H A Dksyms_snapshot.c85 Shdr *strhdr = symhdr + symhdr->sh_link;
172 shp->sh_link = KSHDR_STRTAB;
/opensolaris-onvv-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c326 reloc_symtab->p_shdr.sh_link, sym.st_name);
431 reloc_symtab->p_shdr.sh_link, sym.st_name);
551 (_shdr.sh_link == (GElf_Word)symscnndx)) {
625 p_symtab->p_shdr.sh_link,
629 p_symtab->p_shdr.sh_link, sym.st_name);
705 EC_WORD(p->p_shdr.sh_link),
798 if ((p_scns->p_shdr.sh_link == 0) ||
800 (p_scns->p_shdr.sh_link >= (GElf_Word)shnum)) {
801 (void) fprintf(stderr, "%s: %s: invalid sh_link field: "
802 "section #: %d sh_link
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/exec/elf/
H A Delf.c1000 *shstrndx = shdr.sh_link;
1500 if (shdr->sh_link > 0 &&
1501 shdr->sh_link < nshdrs) {
1503 shdr->sh_link * ehdr.e_shentsize);
1527 v[i].sh_link = 0;
1531 v[i].sh_link =
1534 v[i].sh_link = i + 1;
1564 symtab->sh_link == 0 ||
1565 symtab->sh_link >= nshdrs)
1569 symtab->sh_link * ehd
[all...]

Completed in 197 milliseconds

1234