Searched refs:shoff (Results 1 – 4 of 4) sorted by relevance
/freebsd/contrib/elftoolchain/libelf/ |
H A D | libelf_ehdr.c | 41 _libelf_load_extended(Elf *e, int ec, uint64_t shoff, uint16_t phnum, in _libelf_load_extended() argument 54 if (shoff + fsz < shoff) { /* Numeric overflow. */ in _libelf_load_extended() 59 if ((uint64_t) e->e_rawsize < shoff + fsz) { in _libelf_load_extended() 70 (unsigned char *) e->e_rawfile + shoff, (size_t) 1, in _libelf_load_extended() 111 uint64_t shoff; in _libelf_ehdr() local 181 shoff = ((Elf32_Ehdr *) ehdr)->e_shoff; in _libelf_ehdr() 186 shoff = ((Elf64_Ehdr *) ehdr)->e_shoff; in _libelf_ehdr() 191 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM || in _libelf_ehdr() 201 if ((shnum == 0 && shoff != 0) || phnum == PN_XNUM || strndx == SHN_XINDEX) { in _libelf_ehdr() 202 if (_libelf_load_extended(e, ec, shoff, phnum, strndx) == 0) in _libelf_ehdr()
|
H A D | elf_scn.c | 61 uint64_t shoff; in _libelf_load_section_headers() local 75 if (shoff > (uintmax_t) e->e_rawsize || \ in _libelf_load_section_headers() 78 fsz * shnum > rawsize - shoff) { \ in _libelf_load_section_headers() 92 shoff = (uint64_t) eh32->e_shoff; in _libelf_load_section_headers() 96 shoff = eh64->e_shoff; in _libelf_load_section_headers() 104 src = e->e_rawfile + shoff; in _libelf_load_section_headers()
|
H A D | elf_update.c | 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() [all …]
|
/freebsd/usr.bin/elfdump/ |
H A D | elfdump.c | 507 u_int64_t shoff; in main() local 610 shoff = elf_get_off(e, e, E_SHOFF); in main() 615 if (shoff > 0) { in main() 616 sh = (char *)e + shoff; in main() 721 u_int64_t shoff; in elf_print_ehdr() local 738 shoff = elf_get_off(e, e, E_SHOFF); in elf_print_ehdr() 753 fprintf(out, "\te_shoff: %jd\n", (intmax_t)shoff); in elf_print_ehdr()
|