Lines Matching refs:hi
95 test_size(Lword hi)
110 if (hi > INT_MAX) { /* Bigger than 2GB */
113 if (hi > UINT_MAX) {
132 if (hi > UINT_MAX) {
159 Lword hi;
178 hi = elf_fsize(ELF_T_EHDR, 1, ver);
180 eh->e_ehsize = (Half)hi;
185 eh->e_phoff = (Off)hi;
186 hi += eh->e_phentsize * eh->e_phnum;
211 * Loop through sections. Compute section size before changing hi.
265 * encountering a NOBITS section the hi counter is restored
270 hibit = hi;
273 hi = hibit;
278 if ((fsz = hi % j) != 0)
279 hi += j - fsz;
282 sh->sh_offset = (Off)hi;
283 hi += sz;
288 * restore the 'hi' counter to point to the end of the last
292 hi = hibit;
300 if (hi % FSZ_LONG != 0)
301 hi += FSZ_LONG - hi % FSZ_LONG;
303 eh->e_shoff = (Off)hi;
324 hi += eh->e_shentsize * scncnt;
331 if (test_size(hi) == 0)
335 return ((size_t)hi);
344 Lword hi;
362 hi = elf_fsize(ELF_T_EHDR, 1, ver);
364 eh->e_ehsize = (Half)hi;
370 * hi water mark accordingly.
378 if ((sz = eh->e_phoff + eh->e_phentsize * eh->e_phnum) > hi)
379 hi = sz;
383 * Compute section size before changing hi.
421 (hi < sh->sh_offset + sh->sh_size))
422 hi = sh->sh_offset + sh->sh_size;
443 if ((sz = eh->e_shoff + eh->e_shentsize * scncnt) > hi)
444 hi = sz;
447 if (test_size(hi) == 0)
451 return ((size_t)hi);
461 Xword hi, sz;
543 hi = eh->e_ehsize;
564 hi = (Xword)(eh->e_phoff + dst.d_size);
608 if (fill && (sh->sh_offset > hi)) {
609 sz = sh->sh_offset - hi;
662 hi = sh->sh_offset + sh->sh_size;
669 if (fill && (eh->e_shoff > hi)) {
670 sz = eh->e_shoff - hi;
671 (void) memset(image + hi, byte, sz);