| /illumos-gate/usr/src/cmd/sgs/libelf/common/ |
| H A D | getshnum.c | 63 if ((ehdr.e_shnum == 0) && (ehdr.e_shoff == 0)) {
|
| H A D | clscook.c | 364 if ((eh->e_shnum == 0) && (eh->e_shoff == 0)) 380 if ((eh->e_shoff == 0) || 381 (elf->ed_fsz <= eh->e_shoff) || 382 (elf->ed_fsz - eh->e_shoff < fsz)) { 386 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_shoff); 393 if ((_elf_vm(elf, (size_t)eh->e_shoff, fsz) != OK_YES) || 402 if ((eh->e_shoff == 0) || 403 (elf->ed_fsz <= eh->e_shoff) || 404 (elf->ed_fsz - eh->e_shoff < fsz)) { 410 ((eh->e_shoff [all...] |
| H A D | update.c | 303 eh->e_shoff = (Off)hi; 326 eh->e_shoff = 0; 443 if ((sz = eh->e_shoff + eh->e_shentsize * scncnt) > hi) 669 if (fill && (eh->e_shoff > hi)) { 670 sz = eh->e_shoff - hi; 676 dst.d_buf = (Elf_Void *)(image + eh->e_shoff);
|
| H A D | gelf.c | 108 dst->e_shoff = (Elf64_Off)e->e_shoff; 169 d->e_shoff = (Elf32_Off)src->e_shoff;
|
| /illumos-gate/usr/src/lib/libctf/common/ |
| H A D | ctf_lib.c | 126 dst->e_shoff = (Elf64_Off)src->e_shoff; 287 hdr.e64.e_shoff) != sizeof (x32)) 297 hdr.e64.e_shoff) != sizeof (x64)) 316 * from e_shoff so we can locate sections of interest. 324 sp32, nbytes, hdr.e64.e_shoff) != nbytes) { 334 } else if (pread64(fd, sp, nbytes, hdr.e64.e_shoff) != nbytes) {
|
| /illumos-gate/usr/src/grub/grub-0.97/netboot/ |
| H A D | elf.h | 172 Elf32_Off e_shoff; /* Section header file offset. */ member in struct:__anon2085 189 Elf64_Off e_shoff; /* Section header file offset. */ member in struct:__anon2086
|
| /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), 92 dbg_print(lml, MSG_ORIG(MSG_ELF_SHOFF), EC_OFF(ehdr->e_shoff),
|
| /illumos-gate/usr/src/cmd/file/ |
| H A D | elf_read.c | 213 (EI_Ehdr.e_shoff != 0)) { 279 * A value of 0 for e_shoff means that there is no section header 285 if ((EI_Ehdr.e_shoff == 0) || ((inx > 0) && (inx >= EI_Ehdr_shnum))) 289 off = (FILE_ELF_OFF_T)EI_Ehdr.e_shoff + (inx * size); 432 if (EI_Ehdr.e_shoff == 0 && EI_Ehdr_shnum == 0)
|
| /illumos-gate/usr/src/uts/i86pc/dboot/ |
| H A D | dboot_elfload.c | 109 sechdrs = PGETBYTES(eh->e_shoff);
|
| /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 in struct:__anon2184
|
| /illumos-gate/usr/src/boot/sys/sys/ |
| H A D | elf32.h | 62 Elf32_Off e_shoff; /* Section header file offset. */ member in struct:__anon407
|
| H A D | elf64.h | 71 Elf64_Off e_shoff; /* Section header file offset. */ member in struct:__anon424
|
| /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 ||
|
| /illumos-gate/usr/src/lib/libproc/common/ |
| H A D | Pcore.c | 1430 b->ehdr.e_shoff = sizeof (b->ehdr); 1496 b->ehdr.e_shoff = sizeof (b->ehdr); 1654 efp->e_hdr.e_shoff = e64.e_shoff; 1674 efp->e_hdr.e_shoff = (Elf64_Off)e32.e_shoff; 1691 if ((efp->e_hdr.e_shnum == 0 && efp->e_hdr.e_shoff != 0) || 1698 if (efp->e_hdr.e_shoff == 0) { 1708 efp->e_hdr.e_shoff) != sizeof (shdr32)) { 1717 efp->e_hdr.e_shoff) ! [all...] |
| H A D | Psymtab_machelf32.c | 460 ep->e_shoff = ep->e_phoff + phnum * ep->e_phentsize; 471 sp = (Shdr *)(elfdata + ep->e_shoff); 472 off = ep->e_shoff + ep->e_shentsize * ep->e_shnum;
|
| H A D | Pcontrol.h | 182 Elf64_Off e_shoff; member in struct:elf_file_header
|
| /illumos-gate/usr/src/ucblib/libucb/port/gen/ |
| H A D | nlist.c | 170 if (ehdr->e_shoff == 0) { 176 if ((secdata = elf_read(fd, (long)ehdr->e_shoff,
|
| /illumos-gate/usr/src/uts/common/sys/ |
| H A D | elf.h | 76 Elf32_Off e_shoff; /* shdr file offset */ member in struct:__anon252 94 Elf64_Off e_shoff; /* shdr file offset */ member in struct:__anon253
|
| /illumos-gate/usr/src/cmd/mdb/common/mdb/ |
| H A D | mdb_gelf.c | 186 dst->e_shoff = src->e_shoff; 244 if (IOP_SEEK(gf->gf_io, (off64_t)gf->gf_ehdr.e_shoff, SEEK_SET) == -1) { 594 gf->gf_ehdr.e_shoff = ehdr->e_shoff; 607 if ((gf->gf_shnum == 0 && ehdr->e_shoff != 0) || 611 if (ehdr->e_shoff == 0) 614 if (IOP_SEEK(io, (off64_t)ehdr->e_shoff, SEEK_SET) == -1) { 666 if ((gf->gf_shnum == 0 && ehdr->e_shoff != 0) || 670 if (ehdr->e_shoff [all...] |
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | ksyms_snapshot.c | 152 hdr.elf_hdr.e_shoff = offsetof(ksyms_header_t, shdr);
|
| /illumos-gate/usr/src/boot/sys/boot/common/ |
| H A D | load_elf_obj.c | 126 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 || 203 shdr = alloc_pread(ef->fd, (off_t)hdr->e_shoff, shdrbytes);
|
| /illumos-gate/usr/src/cmd/mdb/common/modules/krtld/ |
| H A D | krtld.c | 163 mdb_printf(" e_shoff: 0x%16lx e_shentsize: %8hu e_shnum: %hu\n", 164 ehdr->e_shoff, ehdr->e_shentsize, ehdr->e_shnum);
|
| /illumos-gate/usr/src/psm/stand/boot/common/ |
| H A D | readfile.c | 248 dprintf("e_shoff\t\t0x%llx\n", (is64 ? 249 elfhdr64.e_shoff : 250 (u_longlong_t)elfhdr.e_shoff)); 1147 if (lseek(fd, ehdr->e_shoff, 0) == -1 || 1303 if (lseek(fd, ehdr->e_shoff, 0) == -1 ||
|
| /illumos-gate/usr/src/lib/libelfsign/common/ |
| H A D | elfsignlib.c | 811 if (elfehdr.e_shoff < prev_end) { 820 elfehdr.e_shoff, prev_end); 821 elfehdr.e_shoff = prev_end;
|
| /illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
| H A D | ehdr.c | 62 EHDR_CMD_T_E_SHOFF = 7, /* ehdr:e_shoff */ 478 EC_WORD(ehdr->e_shoff)); 888 if (ehdr->e_shoff == off) { 891 EC_OFF(ehdr->e_shoff)); 895 EC_OFF(ehdr->e_shoff), EC_OFF(off)); 897 ehdr->e_shoff = off; 1849 /* ehdr:e_shoff */ 2114 /* ehdr:e_shoff */
|