Searched refs:e_shoff (Results 1 - 25 of 48) sorted by relevance

12

/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetshnum.c63 if ((ehdr.e_shnum == 0) && (ehdr.e_shoff == 0)) {
H A Dclscook.c364 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 Dupdate.c303 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 Dgelf.c108 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 Dctf_lib.c126 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 Delf.h172 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 Delf.c88 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 Delf_read.c213 (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 Ddboot_elfload.c109 sechdrs = PGETBYTES(eh->e_shoff);
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h75 Elf32_Off e_shoff; /* section header table file offset */ member in struct:__anon2184
/illumos-gate/usr/src/boot/sys/sys/
H A Delf32.h62 Elf32_Off e_shoff; /* Section header file offset. */ member in struct:__anon407
H A Delf64.h71 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.c152 if (lseek(fd, h.e_shoff, SEEK_SET) != h.e_shoff ||
/illumos-gate/usr/src/lib/libproc/common/
H A DPcore.c1430 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 DPsymtab_machelf32.c460 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 DPcontrol.h182 Elf64_Off e_shoff; member in struct:elf_file_header
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dnlist.c170 if (ehdr->e_shoff == 0) {
176 if ((secdata = elf_read(fd, (long)ehdr->e_shoff,
/illumos-gate/usr/src/uts/common/sys/
H A Delf.h76 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 Dmdb_gelf.c186 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 Dksyms_snapshot.c152 hdr.elf_hdr.e_shoff = offsetof(ksyms_header_t, shdr);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dload_elf_obj.c126 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 Dkrtld.c163 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 Dreadfile.c248 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 Delfsignlib.c811 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 Dehdr.c62 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 */

Completed in 86 milliseconds

12