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

1234

/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetshstrndx.c61 *shstrndx = shdr0.sh_link;
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c167 sh[i].sh_link < 1 || sh[i].sh_link >= h.e_shnum ||
168 sh[sh[i].sh_link].sh_type != SHT_STRTAB ||
169 sh[sh[i].sh_link].sh_size == 0)
176 size = (int) (sh[i].sh_size + sh[sh[i].sh_link].sh_size);
193 lseek(fd, sh[sh[i].sh_link].sh_offset, SEEK_SET) !=
194 sh[sh[i].sh_link].sh_offset ||
195 read(fd, stbuf + sh[i].sh_size, sh[sh[i].sh_link].sh_size) !=
196 sh[sh[i].sh_link].sh_size)
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dgroups.c175 * Confirm that the sh_link points to a valid section.
177 if ((gshdr->sh_link == SHN_UNDEF) ||
178 (gshdr->sh_link >= gifl->ifl_shnum) ||
179 ((isc = gifl->ifl_isdesc[gshdr->sh_link]) == NULL)) {
182 gisc->is_name, EC_XWORD(gshdr->sh_link));
202 ((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...]
/illumos-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:__anon2090
/illumos-gate/usr/src/cmd/mdb/tools/findfp/common/
H A Dfindsym.c68 if ((*symnamep = elf_strptr(elf, shdr.sh_link,
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Dsyms.c58 strs = (char *)cache[shdr->sh_link].c_data->d_buf;
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c148 dst->sh_link = src->sh_link;
292 shstrndx = x32.sh_link;
302 shstrndx = x64.sh_link;
363 const GElf_Shdr *lhp = &sp[shp->sh_link];
365 if (shp->sh_link >= shnum)
366 continue; /* corrupt sh_link field */
/illumos-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...]
/illumos-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;
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c324 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
326 file, cache[ndx].c_name, EC_WORD(shdr->sh_link));
333 ndx = shdr->sh_link;
364 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
366 file, cache[ndx].c_name, EC_WORD(shdr->sh_link));
371 *strsec = &cache[shdr->sh_link];
426 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...]
/illumos-gate/usr/src/cmd/boot/symdef/
H A Dsymdef.c104 (strcmp(argv[2], elf_strptr(elfp, shdr.sh_link,
/illumos-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);
/illumos-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...]
/illumos-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));
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c499 sp->sh_link = 0;
520 sp->sh_link = dynstr_shndx;
548 sp->sh_link = dynstr_shndx;
574 sp->sh_link = 0;
598 sp->sh_link = dynstr_shndx;
699 sp->sh_link = 0;
/illumos-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...]
/illumos-gate/usr/src/cmd/sgs/libelf/misc/
H A Dnlist.c91 strtab = s_buf.sh_link;
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dshdr.c55 conv_sec_linkinfo(shdr->sh_link, shdr->sh_flags, &inv_buf1),
/illumos-gate/usr/src/uts/common/os/
H A Dksyms_snapshot.c85 Shdr *strhdr = symhdr + symhdr->sh_link;
172 shp->sh_link = KSHDR_STRTAB;
/illumos-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...]

Completed in 74 milliseconds

1234