Lines Matching refs:shp
362 const GElf_Shdr *shp = &sp[i];
363 const GElf_Shdr *lhp = &sp[shp->sh_link];
365 if (shp->sh_link >= shnum)
368 if (shp->sh_name >= sp[shstrndx].sh_size ||
372 if (shp->sh_type == SHT_PROGBITS &&
373 strcmp(strs + shp->sh_name, _CTF_SECTION) == 0) {
374 ctfsect.cts_name = strs + shp->sh_name;
375 ctfsect.cts_type = shp->sh_type;
376 ctfsect.cts_flags = shp->sh_flags;
377 ctfsect.cts_size = shp->sh_size;
378 ctfsect.cts_entsize = shp->sh_entsize;
379 ctfsect.cts_offset = (off64_t)shp->sh_offset;
381 } else if (shp->sh_type == SHT_SYMTAB) {
382 symsect.cts_name = strs + shp->sh_name;
383 symsect.cts_type = shp->sh_type;
384 symsect.cts_flags = shp->sh_flags;
385 symsect.cts_size = shp->sh_size;
386 symsect.cts_entsize = shp->sh_entsize;
387 symsect.cts_offset = (off64_t)shp->sh_offset;