Lines Matching defs:shp
385 const GElf_Shdr *shp = &sp[i];
386 const GElf_Shdr *lhp = &sp[shp->sh_link];
388 if (shp->sh_link >= shnum)
391 if (shp->sh_name >= sp[shstrndx].sh_size ||
395 if (shp->sh_type == SHT_PROGBITS &&
396 strcmp(strs + shp->sh_name, _CTF_SECTION) == 0) {
397 ctfsect.cts_name = strs + shp->sh_name;
398 ctfsect.cts_type = shp->sh_type;
399 ctfsect.cts_flags = shp->sh_flags;
400 ctfsect.cts_size = shp->sh_size;
401 ctfsect.cts_entsize = shp->sh_entsize;
402 ctfsect.cts_offset = (off64_t)shp->sh_offset;
404 } else if (shp->sh_type == SHT_SYMTAB) {
405 symsect.cts_name = strs + shp->sh_name;
406 symsect.cts_type = shp->sh_type;
407 symsect.cts_flags = shp->sh_flags;
408 symsect.cts_size = shp->sh_size;
409 symsect.cts_entsize = shp->sh_entsize;
410 symsect.cts_offset = (off64_t)shp->sh_offset;