Lines Matching refs:shoff
516 off_t rc, phoff, shoff; in _libelf_resync_elf() local
540 shoff = (off_t) eh32->e_shoff; in _libelf_resync_elf()
546 shoff = (off_t) eh64->e_shoff; in _libelf_resync_elf()
550 if (phoff < 0 || shoff < 0) { in _libelf_resync_elf()
674 if (shoff % (off_t) align) { in _libelf_resync_elf()
679 shoff = roundup(rc, (off_t) align); in _libelf_resync_elf()
681 if (shoff + (off_t) fsz > rc) in _libelf_resync_elf()
682 rc = shoff + (off_t) fsz; in _libelf_resync_elf()
685 (uint64_t) shoff, fsz, NULL)) in _libelf_resync_elf()
688 shoff = 0; in _libelf_resync_elf()
704 eh32->e_shoff = (uint32_t) shoff; in _libelf_resync_elf()
707 eh64->e_shoff = (uint64_t) shoff; in _libelf_resync_elf()
959 uint64_t shoff; in _libelf_write_shdr() local
976 shoff = (uint64_t) eh32->e_shoff; in _libelf_write_shdr()
979 shoff = eh64->e_shoff; in _libelf_write_shdr()
985 assert(shoff % _libelf_falign(ELF_T_SHDR, ec) == 0); in _libelf_write_shdr()
986 assert(ex->ex_start == shoff); in _libelf_write_shdr()