Lines Matching refs:shoff
407 off_t rc, phoff, shoff;
431 shoff = (uint64_t) eh32->e_shoff;
438 shoff = eh64->e_shoff;
546 if (shoff % align) {
551 shoff = roundup(rc, align);
553 if (shoff + fsz * shnum > (size_t) rc)
554 rc = shoff + fsz * shnum;
556 shoff = 0;
572 eh32->e_shoff = (uint32_t) shoff;
575 eh64->e_shoff = (uint64_t) shoff;
711 uint64_t phoff, shoff;
740 shoff = (uint64_t) eh32->e_shoff;
746 shoff = eh64->e_shoff;
818 if (shnum != 0 && shoff != 0) {
819 if ((uint64_t) rc < shoff)
821 LIBELF_PRIVATE(fillchar), shoff - rc);
824 rc = shoff;