Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dclscook.c355 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()
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()
403 elf->ed_shdr = (Shdr *)(elf->ed_ident + eh->e_shoff); in _elf_shdr()
[all …]
H A Dupdate.c306 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 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()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddw_elfstructs.h67 TYP(e_shoff,4);
85 TYP(e_shoff,8);
H A Ddwarf_elfstructs.h75 TYP(e_shoff,4);
93 TYP(e_shoff,8);
/illumos-gate/usr/src/cmd/file/
H A Delf_read.c214 (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 Delf.h172 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 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()
/illumos-gate/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()
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 DPcore.c1498 b->ehdr.e_shoff = sizeof (b->ehdr); in fake_up_symtab()
1564 b->ehdr.e_shoff = sizeof (b->ehdr); in fake_up_symtab()
1722 efp->e_hdr.e_shoff = e64.e_shoff; in core_elf_fdopen()
1742 efp->e_hdr.e_shoff = (Elf64_Off)e32.e_shoff; in core_elf_fdopen()
1759 if ((efp->e_hdr.e_shnum == 0 && efp->e_hdr.e_shoff != 0) || in core_elf_fdopen()
1766 if (efp->e_hdr.e_shoff == 0) { in core_elf_fdopen()
1776 efp->e_hdr.e_shoff) != sizeof (shdr32)) { in core_elf_fdopen()
1785 efp->e_hdr.e_shoff) != sizeof (shdr)) { in core_elf_fdopen()
1861 if (efp->e_hdr.e_shoff == efp->e_hdr.e_phoff + in core_elf_fdopen()
1864 efp->e_hdr.e_shoff = in core_elf_fdopen()
[all …]
H A DPsymtab_machelf32.c460 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 DPcontrol.h190 Elf64_Off e_shoff; member
/illumos-gate/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 == 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.c152 if (lseek(fd, h.e_shoff, SEEK_SET) != h.e_shoff || in __fex_read_syms()
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c113 sechdrs = PGETBYTES(eh->e_shoff); in dboot_elfload64()
/illumos-gate/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()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h75 Elf32_Off e_shoff; /* section header table file offset */ member
/illumos-gate/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
/illumos-gate/usr/src/uts/common/sys/
H A Delf.h77 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 Dehdr.c478 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 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"
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dreadfile.c209 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 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()

123