Home
last modified time | relevance | path

Searched refs:e_shoff (Results 1 – 25 of 52) sorted by relevance

123

/titanic_51/usr/src/cmd/sgs/libelf/common/
H A Dclscook.c364 if ((eh->e_shnum == 0) && (eh->e_shoff == 0)) in _elf_shdr()
380 if ((eh->e_shoff == 0) || in _elf_shdr()
381 (elf->ed_fsz <= eh->e_shoff) || in _elf_shdr()
382 (elf->ed_fsz - eh->e_shoff < fsz)) { in _elf_shdr()
386 src.d_buf = (Elf_Void *)(elf->ed_ident + eh->e_shoff); in _elf_shdr()
393 if ((_elf_vm(elf, (size_t)eh->e_shoff, fsz) != OK_YES) || in _elf_shdr()
402 if ((eh->e_shoff == 0) || in _elf_shdr()
403 (elf->ed_fsz <= eh->e_shoff) || in _elf_shdr()
404 (elf->ed_fsz - eh->e_shoff < fsz)) { in _elf_shdr()
410 ((eh->e_shoff in _elf_shdr()
[all...]
H A Dupdate.c303 eh->e_shoff = (Off)hi; in _elf_upd_lib()
326 eh->e_shoff = 0; in _elf_upd_lib()
443 if ((sz = eh->e_shoff + eh->e_shentsize * scncnt) > hi) in _elf_upd_usr()
669 if (fill && (eh->e_shoff > hi)) { in wrt()
670 sz = eh->e_shoff - hi; in wrt()
676 dst.d_buf = (Elf_Void *)(image + eh->e_shoff); in wrt()
H A Dgetshnum.c63 if ((ehdr.e_shnum == 0) && (ehdr.e_shoff == 0)) { in elf_getshdrnum()
H A Dgelf.c108 dst->e_shoff = (Elf64_Off)e->e_shoff; in gelf_getehdr()
169 d->e_shoff = (Elf32_Off)src->e_shoff; in gelf_update_ehdr()
/titanic_51/usr/src/cmd/file/
H A Delf_read.c213 (EI_Ehdr.e_shoff != 0)) { in elf_read()
279 * A value of 0 for e_shoff means that there is no section header in get_shdr()
285 if ((EI_Ehdr.e_shoff == 0) || ((inx > 0) && (inx >= EI_Ehdr_shnum))) in get_shdr()
289 off = (FILE_ELF_OFF_T)EI_Ehdr.e_shoff + (inx * size); in get_shdr()
432 if (EI_Ehdr.e_shoff == 0 && EI_Ehdr_shnum == 0) in process_shdr()
/titanic_51/usr/src/grub/grub-0.97/netboot/
H A Delf.h172 Elf32_Off e_shoff; /* Section header file offset. */ member
189 Elf64_Off e_shoff; /* Section header file offset. */ member
/titanic_51/usr/src/cmd/sgs/liblddbg/common/
H A Delf.c88 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()
/titanic_51/usr/src/lib/libctf/common/
H A Dctf_lib.c351 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()
544 * from e_shoff so we can locate sections of interest. 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()
/titanic_51/usr/src/lib/libproc/common/
H A DPcore.c1379 b->ehdr.e_shoff = sizeof (b->ehdr); in fake_up_symtab()
1445 b->ehdr.e_shoff = sizeof (b->ehdr); in fake_up_symtab()
1603 efp->e_hdr.e_shoff = e64.e_shoff; in core_elf_fdopen()
1623 efp->e_hdr.e_shoff = (Elf64_Off)e32.e_shoff; in core_elf_fdopen()
1640 if ((efp->e_hdr.e_shnum == 0 && efp->e_hdr.e_shoff != 0) || in core_elf_fdopen()
1647 if (efp->e_hdr.e_shoff == 0) { in core_elf_fdopen()
1657 efp->e_hdr.e_shoff) != sizeof (shdr32)) { in core_elf_fdopen()
1666 efp->e_hdr.e_shoff) ! in core_elf_fdopen()
[all...]
H A DPsymtab_machelf32.c458 ep->e_shoff = ep->e_phoff + phnum * ep->e_phentsize; in fake_elf64()
469 sp = (Shdr *)(elfdata + ep->e_shoff); in fake_elf64()
470 off = ep->e_shoff + ep->e_shentsize * ep->e_shnum; in fake_elf64()
H A DPcontrol.h180 Elf64_Off e_shoff; member
/titanic_51/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c186 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 in gelf64_init()
[all...]
/titanic_51/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c152 if (lseek(fd, h.e_shoff, SEEK_SET) != h.e_shoff || in __fex_read_syms()
/titanic_51/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c109 sechdrs = PGETBYTES(eh->e_shoff); in dboot_elfload64()
/titanic_51/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h75 Elf32_Off e_shoff; /* section header table file offset */ member
/titanic_51/usr/src/ucblib/libucb/port/gen/
H A Dnlist.c170 if (ehdr->e_shoff == 0) { in _elf_nlist()
176 if ((secdata = elf_read(fd, (long)ehdr->e_shoff, in _elf_nlist()
/titanic_51/usr/src/boot/sys/sys/
H A Delf32.h62 Elf32_Off e_shoff; /* Section header file offset. */ member
H A Delf64.h71 Elf64_Off e_shoff; /* Section header file offset. */ member
/titanic_51/usr/src/uts/common/sys/
H A Delf.h76 Elf32_Off e_shoff; /* shdr file offset */ member
94 Elf64_Off e_shoff; /* shdr file offset */ member
/titanic_51/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)); 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()
1849 /* ehdr:e_shoff */ in elfedit_init()
2114 /* ehdr:e_shoff */ in elfedit_init()
H A Dehdr.msg294 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"
/titanic_51/usr/src/psm/stand/boot/common/
H A Dreadfile.c248 dprintf("e_shoff\t\t0x%llx\n", (is64 ? in readfile()
249 elfhdr64.e_shoff : in readfile()
250 (u_longlong_t)elfhdr.e_shoff)); in readfile()
1147 if (lseek(fd, ehdr->e_shoff, 0) == -1 || in iload32()
1303 if (lseek(fd, ehdr->e_shoff, 0) == -1 ||
/titanic_51/usr/src/boot/sys/boot/common/
H A Dload_elf_obj.c126 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()
/titanic_51/usr/src/uts/common/os/
H A Dksyms_snapshot.c152 hdr.elf_hdr.e_shoff = offsetof(ksyms_header_t, shdr); in ksyms_snapshot()
/titanic_51/usr/src/lib/libelfsign/common/
H A Delfsignlib.c811 if (elfehdr.e_shoff < prev_end) { in elfsign_adjustoffsets()
820 elfehdr.e_shoff, prev_end); in elfsign_adjustoffsets()
821 elfehdr.e_shoff = prev_end; in elfsign_adjustoffsets()

123