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

123

/freebsd-12-stable/contrib/binutils/include/elf/
H A Dexternal.h47 unsigned char e_shoff[4]; /* Section header table file offset */ member in struct:__anon722
64 unsigned char e_shoff[8]; /* Section header table file offset */ member in struct:__anon723
H A Dinternal.h48 bfd_size_type e_shoff; /* Section header table file offset */ member in struct:elf_internal_ehdr
/freebsd-12-stable/contrib/elftoolchain/libelf/
H A Dgelf_ehdr.c74 d->e_shoff = eh32->e_shoff;
157 LIBELF_COPY_U32(eh32, s, e_shoff);
H A Delf_scn.c92 shoff = (uint64_t) eh32->e_shoff;
96 shoff = eh64->e_shoff;
H A Dlibelf_ehdr.c181 shoff = ((Elf32_Ehdr *) ehdr)->e_shoff;
186 shoff = ((Elf64_Ehdr *) ehdr)->e_shoff;
H A Delf_update.c540 shoff = (off_t) eh32->e_shoff;
546 shoff = (off_t) eh64->e_shoff;
698 * Update the `e_phoff' and `e_shoff' fields if the library is
704 eh32->e_shoff = (uint32_t) shoff;
707 eh64->e_shoff = (uint64_t) shoff;
976 shoff = (uint64_t) eh32->e_shoff;
979 shoff = eh64->e_shoff;
/freebsd-12-stable/sys/compat/linux/
H A Dlinux_vdso.c115 ehdr->e_shoff == 0 ||
122 shdr = (Elf_Shdr *) ((caddr_t)ehdr + ehdr->e_shoff);
196 shdr = (Elf_Shdr *)((caddr_t)ehdr + ehdr->e_shoff);
229 shdr = (Elf_Shdr *) ((caddr_t)ehdr + ehdr->e_shoff);
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c149 dst->e_shoff = (Elf64_Off)src->e_shoff;
310 hdr.e64.e_shoff) != sizeof (x32))
320 hdr.e64.e_shoff) != sizeof (x64))
339 * from e_shoff so we can locate sections of interest.
347 sp32, nbytes, hdr.e64.e_shoff) != nbytes) {
358 } else if (pread64(fd, sp, nbytes, hdr.e64.e_shoff) != nbytes) {
/freebsd-12-stable/usr.sbin/crunch/crunchide/
H A Dexec_elf32.c253 if (xreadatoff(fd, shdrp, xewtoh(ehdr.e_shoff), shdrsize, fn) !=
305 shdrshdr.sh_offset = ehdr.e_shoff;
466 ehdr.e_shoff != shdrshdr.sh_offset) {
467 ehdr.e_shoff = shdrshdr.sh_offset;
468 off = offsetof(Elf_Ehdr, e_shoff);
470 if ((size_t)xwriteatoff(fd, &ehdr.e_shoff, off, size,
/freebsd-12-stable/sys/mips/mips/
H A Delf_trampoline.c134 memcpy(shdr, (void *)(kstart + eh->e_shoff),
137 if (eh->e_shnum * eh->e_shentsize != 0 && eh->e_shoff != 0) {
/freebsd-12-stable/contrib/file/src/
H A Delfclass.h69 CAST(off_t, elf_getu(swap, elfhdr.e_shoff)), shnum,
H A Dreadelf.h99 Elf32_Off e_shoff; member in struct:__anon1329
116 Elf64_Off e_shoff; member in struct:__anon1330
/freebsd-12-stable/contrib/binutils/bfd/
H A Delfcode.h244 dst->e_shoff = H_GET_WORD (abfd, src->e_shoff);
274 H_PUT_WORD (abfd, src->e_shoff, dst->e_shoff);
573 if (i_ehdrp->e_shoff == 0 && i_ehdrp->e_type == ET_REL)
583 if (i_ehdrp->e_shoff == 0 && i_ehdrp->e_shnum != 0)
675 if (i_ehdrp->e_shoff != 0)
677 bfd_signed_vma where = i_ehdrp->e_shoff;
722 if ((bfd_size_type) where <= i_ehdrp->e_shoff)
731 where = i_ehdrp->e_shoff
[all...]
/freebsd-12-stable/usr.bin/gprof/
H A Delf.c89 shdrs = (const Elf_Shdr *)(base + h.e_shoff);
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h60 elf_off e_shoff; ///< File offset of section header table. member in struct:elf::ELFHeader
H A DELFHeader.cpp90 result &= e_shoff != 0;
100 lldb_private::DataExtractor sh_data(data, e_shoff, e_shentsize);
132 // Read e_entry, e_phoff and e_shoff.
/freebsd-12-stable/sys/sys/
H A Delf32.h64 Elf32_Off e_shoff; /* Section header file offset. */ member in struct:__anon16780
H A Delf64.h73 Elf64_Off e_shoff; /* Section header file offset. */ member in struct:__anon16798
/freebsd-12-stable/sys/kern/
H A Dkern_ctf.c140 if (nbytes == 0 || hdr->e_shoff == 0 ||
151 hdr->e_shoff, UIO_SYSSPACE, IO_NODELOCKED, td->td_ucred, NOCRED,
/freebsd-12-stable/sys/arm/arm/
H A Delf_trampoline.c324 memcpy(shdr, (void *)(kstart + eh->e_shoff),
327 eh->e_shoff != 0) {
/freebsd-12-stable/contrib/elftoolchain/elfcopy/
H A Dbinary.c279 oeh.e_shoff = shtab->off;
281 /* Update ehdr since we modified e_shoff. */
/freebsd-12-stable/stand/common/
H A Dload_elf_obj.c148 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 ||
243 shdr = alloc_pread(VECTX_HANDLE(ef), (off_t)hdr->e_shoff, shdrbytes);
H A Dload_elf.c149 CONVERT_FIELD(b, e_shoff, e); \
642 if (chunk == 0 || ehdr->e_shoff == 0)
644 shdr = alloc_pread(VECTX_HANDLE(ef), ehdr->e_shoff, chunk);
971 shdr = alloc_pread(VECTX_HANDLE(&ef), ef.ehdr->e_shoff, size);
/freebsd-12-stable/usr.sbin/kldxref/
H A Def_obj.c403 if (nbytes == 0 || hdr->e_shoff == 0 ||
407 if (ef_obj_read_entry(ef, hdr->e_shoff, nbytes, &vtmp) != 0) {
/freebsd-12-stable/lib/libc/gen/
H A Dnlist.c269 (off_t)ehdr.e_shoff);

Completed in 323 milliseconds

123