Lines Matching refs:shp
1782 GElf_Shdr *shp = &cp->c_shdr;
1784 if (shp->sh_type == SHT_SYMTAB || shp->sh_type == SHT_DYNSYM) {
1785 sym_tbl_t *symp = shp->sh_type == SHT_SYMTAB ?
1802 shp->sh_size / shp->sh_entsize;
1804 cache[shp->sh_link].c_data->d_buf;
1806 cache[shp->sh_link].c_data->d_size;
1808 symp->sym_strhdr = cache[shp->sh_link].c_shdr;
1813 } else if (shp->sh_type == SHT_SUNW_LDYNSYM) {
1820 shp->sh_size / shp->sh_entsize;
1828 } else if (shp->sh_type == SHT_DYNAMIC) {
1837 if (shp->sh_link == 0 ||
1838 shp->sh_link >= nshdrs ||
1839 (cache[shp->sh_link].c_shdr.sh_type != SHT_DYNSYM &&
1840 cache[shp->sh_link].c_shdr.sh_type != SHT_SYMTAB)) {
1842 "CTF\n", shp->sh_link);