Lines Matching refs:shp
388 const GElf_Shdr *shp = &sp[i]; in ctf_fdopen() local
389 const GElf_Shdr *lhp = &sp[shp->sh_link]; in ctf_fdopen()
391 if (shp->sh_link >= shnum) in ctf_fdopen()
394 if (shp->sh_name >= sp[shstrndx].sh_size || in ctf_fdopen()
398 if (shp->sh_type == SHT_PROGBITS && in ctf_fdopen()
399 strcmp(strs + shp->sh_name, _CTF_SECTION) == 0) { in ctf_fdopen()
400 ctfsect.cts_name = strs + shp->sh_name; in ctf_fdopen()
401 ctfsect.cts_type = shp->sh_type; in ctf_fdopen()
402 ctfsect.cts_flags = shp->sh_flags; in ctf_fdopen()
403 ctfsect.cts_size = shp->sh_size; in ctf_fdopen()
404 ctfsect.cts_entsize = shp->sh_entsize; in ctf_fdopen()
405 ctfsect.cts_offset = (off64_t)shp->sh_offset; in ctf_fdopen()
407 } else if (shp->sh_type == SHT_SYMTAB) { in ctf_fdopen()
408 symsect.cts_name = strs + shp->sh_name; in ctf_fdopen()
409 symsect.cts_type = shp->sh_type; in ctf_fdopen()
410 symsect.cts_flags = shp->sh_flags; in ctf_fdopen()
411 symsect.cts_size = shp->sh_size; in ctf_fdopen()
412 symsect.cts_entsize = shp->sh_entsize; in ctf_fdopen()
413 symsect.cts_offset = (off64_t)shp->sh_offset; in ctf_fdopen()