Searched refs:shoff (Results 1 - 4 of 4) sorted by relevance

/freebsd-current/contrib/elftoolchain/libelf/
H A Dlibelf_ehdr.c41 _libelf_load_extended(Elf *e, int ec, uint64_t shoff, uint16_t phnum, argument
54 if (shoff + fsz < shoff) { /* Numeric overflow. */
59 if ((uint64_t) e->e_rawsize < shoff + fsz) {
70 (unsigned char *) e->e_rawfile + shoff, (size_t) 1,
111 uint64_t shoff; local
181 shoff = ((Elf32_Ehdr *) ehdr)->e_shoff;
186 shoff = ((Elf64_Ehdr *) ehdr)->e_shoff;
191 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM ||
201 if ((shnum == 0 && shoff !
[all...]
H A Delf_scn.c61 uint64_t shoff; local
75 if (shoff > (uintmax_t) e->e_rawsize || \
78 fsz * shnum > rawsize - shoff) { \
92 shoff = (uint64_t) eh32->e_shoff;
96 shoff = eh64->e_shoff;
104 src = e->e_rawfile + shoff;
H A Delf_update.c516 off_t rc, phoff, shoff; local
540 shoff = (off_t) eh32->e_shoff;
546 shoff = (off_t) eh64->e_shoff;
550 if (phoff < 0 || shoff < 0) {
674 if (shoff % (off_t) align) {
679 shoff = roundup(rc, (off_t) align);
681 if (shoff + (off_t) fsz > rc)
682 rc = shoff + (off_t) fsz;
685 (uint64_t) shoff, fsz, NULL))
688 shoff
959 uint64_t shoff; local
[all...]
/freebsd-current/usr.bin/elfdump/
H A Delfdump.c507 u_int64_t shoff; local
610 shoff = elf_get_off(e, e, E_SHOFF);
615 if (shoff > 0) {
616 sh = (char *)e + shoff;
721 u_int64_t shoff; local
738 shoff = elf_get_off(e, e, E_SHOFF);
753 fprintf(out, "\te_shoff: %jd\n", (intmax_t)shoff);

Completed in 119 milliseconds