Lines Matching defs:shp
453 const GElf_Shdr *shp = &sp[i];
454 const GElf_Shdr *lhp = &sp[shp->sh_link];
456 if (shp->sh_link >= hdr.e64.e_shnum)
459 if (shp->sh_name >= sp[hdr.e64.e_shstrndx].sh_size ||
463 if (shp->sh_type == SHT_PROGBITS &&
464 strcmp(strs + shp->sh_name, _CTF_SECTION) == 0) {
465 ctfsect.cts_name = strs + shp->sh_name;
466 ctfsect.cts_type = shp->sh_type;
467 ctfsect.cts_flags = shp->sh_flags;
468 ctfsect.cts_size = shp->sh_size;
469 ctfsect.cts_entsize = shp->sh_entsize;
470 ctfsect.cts_offset = (off64_t)shp->sh_offset;
472 } else if (shp->sh_type == SHT_SYMTAB) {
473 symsect.cts_name = strs + shp->sh_name;
474 symsect.cts_type = shp->sh_type;
475 symsect.cts_flags = shp->sh_flags;
476 symsect.cts_size = shp->sh_size;
477 symsect.cts_entsize = shp->sh_entsize;
478 symsect.cts_offset = (off64_t)shp->sh_offset;