Home
last modified time | relevance | path

Searched refs:sh_link (Results 1 – 25 of 95) sorted by relevance

1234

/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 || 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()
/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dfile.c520 if ((tmp_shdr.sh_link < shnum) && in traverse_file()
521 (tmp_shdr.sh_link != SHN_UNDEF) && in traverse_file()
522 (tmp_shdr.sh_link != shstrndx) && in traverse_file()
523 (GET_LOC(state->sec_table[tmp_shdr.sh_link].si_flags) == in traverse_file()
525 state->sec_table[tmp_shdr.sh_link].secno = in traverse_file()
530 SET_ACTION(state->sec_table[tmp_shdr.sh_link].si_flags, in traverse_file()
532 state->off_table[tmp_shdr.sh_link] = 0; in traverse_file()
798 if ((src_shdr.sh_link >= shnum) || in build_file()
799 (src_shdr.sh_link == 0)) in build_file()
800 dst_shdr.sh_link = src_shdr.sh_link; in build_file()
[all …]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dgroups.c179 if ((gshdr->sh_link == SHN_UNDEF) || in ld_group_process()
180 (gshdr->sh_link >= gifl->ifl_shnum) || in ld_group_process()
181 ((isc = gifl->ifl_isdesc[gshdr->sh_link]) == NULL)) { in ld_group_process()
184 gisc->is_name, EC_XWORD(gshdr->sh_link)); in ld_group_process()
204 ((isc = gifl->ifl_isdesc[sshdr->sh_link]) == NULL)) { in ld_group_process()
H A Dorder.c188 isp2_ndx = isp1->is_shdr->sh_link; in validate_shf_ordered_dest()
310 isp->is_shdr->sh_info : isp->is_shdr->sh_link; in ld_process_ordered()
442 ndx1 = s1->is_shdr->sh_link; in comp()
447 ndx2 = s2->is_shdr->sh_link; in comp()
H A Dupdate.c2008 shdr->sh_link = (Word)elf_ndxscn(ofl->ofl_osstrtab->os_scn); in update_osym()
2010 ofl->ofl_ossymshndx->os_shdr->sh_link = in update_osym()
2031 shdr->sh_link = (Word)elf_ndxscn(ofl->ofl_osdynstr->os_scn); in update_osym()
2033 ofl->ofl_oshash->os_shdr->sh_link = in update_osym()
2038 shdr->sh_link = in update_osym()
2067 shdr->sh_link = (Word)elf_ndxscn(ofl->ofl_osdynstr->os_scn); in update_osym()
2071 shdr->sh_link = in update_osym()
2085 ofl->ofl_osdynsymsort->os_shdr->sh_link = in update_osym()
2100 ofl->ofl_osdyntlssort->os_shdr->sh_link = in update_osym()
2167 ofl->ofl_osdynamic->os_shdr->sh_link = (Word)elf_ndxscn(strosp->os_scn); in update_odynamic()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dshdr.c299 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()
593 EC_WORD(shdr->sh_link)); in cmd_body()
599 EC_WORD(shdr->sh_link), EC_WORD(sh_link)); in cmd_body()
601 shdr->sh_link = sh_link; in cmd_body()
H A Dehdr.c553 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()
1174 shdr0->sh_link = sh_link; in cmd_body()
H A Dshdr.msg137 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"
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c324 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) { in stringtbl()
326 file, cache[ndx].c_name, EC_WORD(shdr->sh_link)); in stringtbl()
333 ndx = shdr->sh_link; in stringtbl()
364 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) { in stringtbl()
366 file, cache[ndx].c_name, EC_WORD(shdr->sh_link)); in stringtbl()
371 *strsec = &cache[shdr->sh_link]; in stringtbl()
426 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) { in symlookup()
428 file, symtab->c_name, EC_WORD(shdr->sh_link)); in symlookup()
439 symname = string(symtab, cnt, &cache[shdr->sh_link], file, in symlookup()
1071 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) { in init_symtbl_state()
[all …]
H A Dfake_shdr.c947 sec->shdr->sh_link = 0; 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()
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c499 sp->sh_link = 0; in fake_elf64()
520 sp->sh_link = dynstr_shndx; in fake_elf64()
548 sp->sh_link = dynstr_shndx; in fake_elf64()
574 sp->sh_link = 0; in fake_elf64()
598 sp->sh_link = dynstr_shndx; in fake_elf64()
700 sp->sh_link = 0; in fake_elf64()
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c229 tshdr.sh_link = shndx[shdr.sh_link]; in delete_comment()
290 shdr0.sh_link = shndx[shstrndx]; in delete_comment()
H A Ddispsyms.c180 (_shdr.sh_link == symscnndx) && in print_symtab()
269 elf_strptr(elf, shdr.sh_link, sym.st_name)); in print_symtab()
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c327 reloc_symtab->p_shdr.sh_link, sym.st_name); in print_rela()
432 reloc_symtab->p_shdr.sh_link, sym.st_name); in print_rel()
556 (_shdr.sh_link == (GElf_Word)symscnndx)) { in print_symtab()
630 p_symtab->p_shdr.sh_link, in print_symtab()
634 p_symtab->p_shdr.sh_link, sym.st_name); in print_symtab()
710 EC_WORD(p->p_shdr.sh_link), in print_shdr()
803 if ((p_scns->p_shdr.sh_link == 0) || in dump_reloc_table()
805 (p_scns->p_shdr.sh_link >= (GElf_Word)shnum)) { in dump_reloc_table()
810 (int)p_scns->p_shdr.sh_link); in dump_reloc_table()
813 head_scns += (p_scns->p_shdr.sh_link -1); in dump_reloc_table()
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddw_elfstructs.h127 TYP(sh_link,4);
141 TYP(sh_link,4);
H A Ddwarf_elfstructs.h135 TYP(sh_link,4);
149 TYP(sh_link,4);
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Dutil_machelf.c936 EC_WORD(strsec->sec_shdr->sh_link), in elfedit_dynstr_insert()
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()
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), strsec->sec_name); in elfedit_strtab_insert()
H A Delfedit_machelf.c61 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()
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c373 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()
H A Dctf_elfwrite.c191 shdr.sh_link = secxlate[shdr.sh_link]; in ctf_write_elf()
296 shdr.sh_link = symtab_idx; in ctf_write_elf()
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetshstrndx.c61 *shstrndx = shdr0.sh_link; in elf_getshdrstrndx()
/illumos-gate/usr/src/cmd/sgs/pvs/common/
H A Dpvs.c482 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in sym_local()
579 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in gvers_need()
831 strs = (char *)cache[shdr.sh_link].c_data->d_buf; in gvers_def()
1239 vsdata_s.vsd_sym_data = cache[shdr.sh_link].c_data; in main()
1240 (void) gelf_getshdr(cache[shdr.sh_link].c_scn, &shdr); in main()
1243 (const char *)cache[shdr.sh_link].c_data->d_buf; in main()
/illumos-gate/usr/src/test/util-tests/tests/ctf/
H A Dcheck-merge-static.c198 if (symhdr.sh_link == SHN_XINDEX) { in check_merge_static()
218 if ((name = elf_strptr(elf, symhdr.sh_link, sym.st_name)) == in check_merge_static()
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Di386_elf.h68 Elf32_Word sh_link; /* Index of a related section. */ member
/illumos-gate/usr/src/uts/common/os/
H A Dksyms_snapshot.c83 Shdr *strhdr = symhdr + symhdr->sh_link; in ksyms_walk_one()
170 shp->sh_link = KSHDR_STRTAB; in ksyms_snapshot()

1234