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

/freebsd-10-stable/lib/libelf/
H A Dlibelf_ehdr.c44 _libelf_load_extended(Elf *e, int ec, uint64_t shoff, uint16_t phnum, argument
57 if (e->e_rawsize < shoff + fsz) { /* raw file too small */
67 e->e_rawfile + shoff, (size_t) 1,
108 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 ||
197 if (shnum != 0 || shoff == 0LL) { /* not using extended numbering */
201 } else if (_libelf_load_extended(e, ec, shoff, phnum, strndx) == 0)
H A Delf_scn.c47 uint64_t shoff; local
59 if (shoff > e->e_rawsize || \
62 fsz * shnum > e->e_rawsize - shoff) { \
76 shoff = (uint64_t) eh32->e_shoff;
80 shoff = eh64->e_shoff;
87 src = e->e_rawfile + shoff;
H A Delf_update.c407 off_t rc, phoff, shoff; local
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; local
[all...]
/freebsd-10-stable/usr.bin/elfdump/
H A Delfdump.c479 u_int64_t shoff; local
570 shoff = elf_get_off(e, e, E_SHOFF);
575 if (shoff > 0) {
576 sh = (char *)e + shoff;
681 u_int64_t shoff; local
698 shoff = elf_get_off(e, e, E_SHOFF);
713 fprintf(out, "\te_shoff: %jd\n", (intmax_t)shoff);
/freebsd-10-stable/sys/contrib/ia64/libuwx/src/
H A Duwx_symbols.c180 uint64_t shoff; member in struct:elf_file
483 fseek(ef->fd, (long)ef->shoff, SEEK_SET);
587 ef->shoff = header.hdr32.e_shoff;
605 ef->shoff = header.hdr64.e_shoff;
643 ef->shoff = 0;

Completed in 165 milliseconds