/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | clscook.c | 355 if ((eh->e_shnum == 0) && (eh->e_shoff == 0)) in _elf_shdr() 371 if ((eh->e_shoff == 0) || in _elf_shdr() 372 (elf->ed_fsz <= eh->e_shoff) || in _elf_shdr() 373 (elf->ed_fsz - eh->e_shoff < fsz)) { in _elf_shdr() 377 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_shoff); in _elf_shdr() 384 if ((_elf_vm(elf, (size_t)eh->e_shoff, fsz) != OK_YES) || in _elf_shdr() 393 if ((eh->e_shoff == 0) || in _elf_shdr() 394 (elf->ed_fsz <= eh->e_shoff) || in _elf_shdr() 395 (elf->ed_fsz - eh->e_shoff < fsz)) { in _elf_shdr() 401 ((eh->e_shoff % sizeof (ElfField)) == 0)) { in _elf_shdr() [all …]
|
H A D | update.c | 306 eh->e_shoff = (Off)hi; in _elf_upd_lib() 329 eh->e_shoff = 0; in _elf_upd_lib() 445 if ((sz = eh->e_shoff + eh->e_shentsize * scncnt) > hi) in _elf_upd_usr() 670 if (fill && (eh->e_shoff > hi)) { in wrt() 671 sz = eh->e_shoff - hi; in wrt() 677 dst.d_buf = (Elf_Void *)(image + eh->e_shoff); in wrt()
|
H A D | getshnum.c | 63 if ((ehdr.e_shnum == 0) && (ehdr.e_shoff == 0)) { in elf_getshdrnum()
|
H A D | gelf.c | 108 dst->e_shoff = (Elf64_Off)e->e_shoff; in gelf_getehdr() 169 d->e_shoff = (Elf32_Off)src->e_shoff; in gelf_update_ehdr()
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dw_elfstructs.h | 67 TYP(e_shoff,4); 85 TYP(e_shoff,8);
|
H A D | dwarf_elfstructs.h | 75 TYP(e_shoff,4); 93 TYP(e_shoff,8);
|
/illumos-gate/usr/src/cmd/file/ |
H A D | elf_read.c | 214 (EI_Ehdr.e_shoff != 0)) { in elf_read() 286 if ((EI_Ehdr.e_shoff == 0) || ((inx > 0) && (inx >= EI_Ehdr_shnum))) in get_shdr() 290 off = (FILE_ELF_OFF_T)EI_Ehdr.e_shoff + (inx * size); in get_shdr() 429 if (EI_Ehdr.e_shoff == 0 && EI_Ehdr_shnum == 0) in process_shdr()
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | elf.h | 172 Elf32_Off e_shoff; /* Section header file offset. */ member 189 Elf64_Off e_shoff; /* Section header file offset. */ member
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | elf.c | 88 dbg_print(lml, MSG_ORIG(MSG_ELFX_SHOFF), EC_OFF(ehdr->e_shoff), in Elf_ehdr() 92 dbg_print(lml, MSG_ORIG(MSG_ELF_SHOFF), EC_OFF(ehdr->e_shoff), in Elf_ehdr()
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 351 dst->e_shoff = (Elf64_Off)src->e_shoff; in ehdr_to_gelf() 515 hdr.e64.e_shoff) != sizeof (x32)) in ctf_fdcreate_int() 525 hdr.e64.e_shoff) != sizeof (x64)) in ctf_fdcreate_int() 552 sp32, nbytes, hdr.e64.e_shoff) != nbytes) { in ctf_fdcreate_int() 562 } else if (pread64(fd, sp, nbytes, hdr.e64.e_shoff) != nbytes) { in ctf_fdcreate_int()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pcore.c | 1532 b->ehdr.e_shoff = sizeof (b->ehdr); in fake_up_symtab() 1598 b->ehdr.e_shoff = sizeof (b->ehdr); in fake_up_symtab() 1756 efp->e_hdr.e_shoff = e64.e_shoff; in core_elf_fdopen() 1776 efp->e_hdr.e_shoff = (Elf64_Off)e32.e_shoff; in core_elf_fdopen() 1793 if ((efp->e_hdr.e_shnum == 0 && efp->e_hdr.e_shoff != 0) || in core_elf_fdopen() 1800 if (efp->e_hdr.e_shoff == 0) { in core_elf_fdopen() 1810 efp->e_hdr.e_shoff) != sizeof (shdr32)) { in core_elf_fdopen() 1819 efp->e_hdr.e_shoff) != sizeof (shdr)) { in core_elf_fdopen() 1895 if (efp->e_hdr.e_shoff == efp->e_hdr.e_phoff + in core_elf_fdopen() 1898 efp->e_hdr.e_shoff = in core_elf_fdopen() [all …]
|
H A D | Psymtab_machelf32.c | 460 ep->e_shoff = ep->e_phoff + phnum * ep->e_phentsize; in fake_elf64() 471 sp = (Shdr *)(elfdata + ep->e_shoff); in fake_elf64() 472 off = ep->e_shoff + ep->e_shentsize * ep->e_shnum; in fake_elf64()
|
H A D | Pcontrol.h | 191 Elf64_Off e_shoff; member
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 186 dst->e_shoff = src->e_shoff; in mdb_gelf_ehdr_to_gehdr() 244 if (IOP_SEEK(gf->gf_io, (off64_t)gf->gf_ehdr.e_shoff, SEEK_SET) == -1) { in gelf_shdrs_init() 594 gf->gf_ehdr.e_shoff = ehdr->e_shoff; in gelf32_init() 607 if ((gf->gf_shnum == 0 && ehdr->e_shoff != 0) || in gelf32_init() 611 if (ehdr->e_shoff == 0) in gelf32_init() 614 if (IOP_SEEK(io, (off64_t)ehdr->e_shoff, SEEK_SET) == -1) { in gelf32_init() 666 if ((gf->gf_shnum == 0 && ehdr->e_shoff != 0) || in gelf64_init() 670 if (ehdr->e_shoff == 0) in gelf64_init() 673 if (IOP_SEEK(io, (off64_t)ehdr->e_shoff, SEEK_SET) == -1) { in gelf64_init()
|
/illumos-gate/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 152 if (lseek(fd, h.e_shoff, SEEK_SET) != h.e_shoff || in __fex_read_syms()
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_elfload.c | 113 sechdrs = PGETBYTES(eh->e_shoff); in dboot_elfload64()
|
/illumos-gate/usr/src/ucblib/libucb/port/gen/ |
H A D | nlist.c | 170 if (ehdr->e_shoff == 0) { in _elf_nlist() 176 if ((secdata = elf_read(fd, (long)ehdr->e_shoff, in _elf_nlist()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | i386-elf.h | 75 Elf32_Off e_shoff; /* section header table file offset */ member
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | elf32.h | 62 Elf32_Off e_shoff; /* Section header file offset. */ member
|
H A D | elf64.h | 71 Elf64_Off e_shoff; /* Section header file offset. */ member
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | elf.h | 77 Elf32_Off e_shoff; /* shdr file offset */ member 95 Elf64_Off e_shoff; /* shdr file offset */ member
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | ehdr.c | 478 EC_WORD(ehdr->e_shoff)); in print_ehdr() 888 if (ehdr->e_shoff == off) { in cmd_body() 891 EC_OFF(ehdr->e_shoff)); in cmd_body() 895 EC_OFF(ehdr->e_shoff), EC_OFF(off)); in cmd_body() 897 ehdr->e_shoff = off; in cmd_body()
|
H A D | ehdr.msg | 294 This information is found in the e_shoff field of the\n\ 298 If ehdr:e_shoff is called without an argument, the value of\n\ 299 e_shoff is shown. If called with the value argument, the\n\ 300 e_shoff field is updated with the new value.\n\ 302 Note: Changing the e_shoff field of an object does not change\n\ 629 @ MSG_CMD_E_SHOFF "e_shoff"
|
/illumos-gate/usr/src/psm/stand/boot/common/ |
H A D | readfile.c | 209 elfhdr64.e_shoff : in readfile() 210 (u_longlong_t)elfhdr.e_shoff)); in readfile() 1023 if (lseek(fd, ehdr->e_shoff, 0) == -1 || in iload32() 1170 if (lseek(fd, ehdr->e_shoff, 0) == -1 || in iload64()
|
/illumos-gate/usr/src/boot/common/ |
H A D | load_elf_obj.c | 126 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 || in __elfN() 203 shdr = alloc_pread(ef->fd, (off_t)hdr->e_shoff, shdrbytes); in __elfN()
|