Lines Matching refs:hi

99 test_size(Lword hi)  in test_size()  argument
114 if (hi > INT_MAX) { /* Bigger than 2GB */ in test_size()
117 if (hi > UINT_MAX) { in test_size()
136 if (hi > UINT_MAX) { in test_size()
162 Lword hi; in _elf_upd_lib() local
181 hi = elf_fsize(ELF_T_EHDR, 1, ver); in _elf_upd_lib()
183 eh->e_ehsize = (Half)hi; in _elf_upd_lib()
188 eh->e_phoff = (Off)hi; in _elf_upd_lib()
189 hi += eh->e_phentsize * eh->e_phnum; in _elf_upd_lib()
273 hibit = hi; in _elf_upd_lib()
276 hi = hibit; in _elf_upd_lib()
281 if ((fsz = hi % j) != 0) in _elf_upd_lib()
282 hi += j - fsz; in _elf_upd_lib()
285 sh->sh_offset = (Off)hi; in _elf_upd_lib()
286 hi += sz; in _elf_upd_lib()
295 hi = hibit; in _elf_upd_lib()
303 if (hi % FSZ_LONG != 0) in _elf_upd_lib()
304 hi += FSZ_LONG - hi % FSZ_LONG; in _elf_upd_lib()
306 eh->e_shoff = (Off)hi; in _elf_upd_lib()
327 hi += eh->e_shentsize * scncnt; in _elf_upd_lib()
334 if (test_size(hi) == 0) in _elf_upd_lib()
338 return ((size_t)hi); in _elf_upd_lib()
346 Lword hi; in _elf_upd_usr() local
364 hi = elf_fsize(ELF_T_EHDR, 1, ver); in _elf_upd_usr()
366 eh->e_ehsize = (Half)hi; in _elf_upd_usr()
380 if ((sz = eh->e_phoff + eh->e_phentsize * eh->e_phnum) > hi) in _elf_upd_usr()
381 hi = sz; in _elf_upd_usr()
423 (hi < sh->sh_offset + sh->sh_size)) in _elf_upd_usr()
424 hi = sh->sh_offset + sh->sh_size; in _elf_upd_usr()
445 if ((sz = eh->e_shoff + eh->e_shentsize * scncnt) > hi) in _elf_upd_usr()
446 hi = sz; in _elf_upd_usr()
449 if (test_size(hi) == 0) in _elf_upd_usr()
453 return ((size_t)hi); in _elf_upd_usr()
462 Xword hi, sz; in wrt() local
544 hi = eh->e_ehsize; in wrt()
565 hi = (Xword)(eh->e_phoff + dst.d_size); in wrt()
609 if (fill && (sh->sh_offset > hi)) { in wrt()
610 sz = sh->sh_offset - hi; in wrt()
663 hi = sh->sh_offset + sh->sh_size; in wrt()
670 if (fill && (eh->e_shoff > hi)) { in wrt()
671 sz = eh->e_shoff - hi; in wrt()
672 (void) memset(image + hi, byte, sz); in wrt()