Home
last modified time | relevance | path

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

123

/freebsd/contrib/elftoolchain/libelf/
H A Dgelf_ehdr.c74 d->e_shoff = eh32->e_shoff; in gelf_getehdr()
157 LIBELF_COPY_U32(eh32, s, e_shoff); in gelf_update_ehdr()
H A Delf_scn.c92 shoff = (uint64_t) eh32->e_shoff; in _libelf_load_section_headers()
96 shoff = eh64->e_shoff; in _libelf_load_section_headers()
H A Dlibelf_ehdr.c181 shoff = ((Elf32_Ehdr *) ehdr)->e_shoff; in _libelf_ehdr()
186 shoff = ((Elf64_Ehdr *) ehdr)->e_shoff; in _libelf_ehdr()
H A Delf_update.c540 shoff = (off_t) eh32->e_shoff; in _libelf_resync_elf()
546 shoff = (off_t) eh64->e_shoff; in _libelf_resync_elf()
704 eh32->e_shoff = (uint32_t) shoff; in _libelf_resync_elf()
707 eh64->e_shoff = (uint64_t) shoff; in _libelf_resync_elf()
976 shoff = (uint64_t) eh32->e_shoff; in _libelf_write_shdr()
979 shoff = eh64->e_shoff; in _libelf_write_shdr()
H A Delf_types.m4108 `e_shoff, OFF',
125 `e_shoff, OFF',
/freebsd/usr.sbin/crunch/crunchide/
H A Dexec_elf32.c251 if (xreadatoff(fd, shdrp, xewtoh(ehdr.e_shoff), shdrsize, fn) != in ELFNAMEEND()
303 shdrshdr.sh_offset = ehdr.e_shoff; in ELFNAMEEND()
464 ehdr.e_shoff != shdrshdr.sh_offset) { in ELFNAMEEND()
465 ehdr.e_shoff = shdrshdr.sh_offset; in ELFNAMEEND()
466 off = offsetof(Elf_Ehdr, e_shoff); in ELFNAMEEND()
468 if ((size_t)xwriteatoff(fd, &ehdr.e_shoff, off, size, in ELFNAMEEND()
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c150 dst->e_shoff = (Elf64_Off)src->e_shoff; in ehdr_to_gelf()
312 hdr.e64.e_shoff) != sizeof (x32)) in ctf_fdopen()
322 hdr.e64.e_shoff) != sizeof (x64)) in ctf_fdopen()
349 sp32, nbytes, hdr.e64.e_shoff) != nbytes) { in ctf_fdopen()
360 } else if (pread64(fd, sp, nbytes, hdr.e64.e_shoff) != nbytes) { in ctf_fdopen()
/freebsd/sys/compat/linux/
H A Dlinux_vdso.c117 MPASS(ehdr->e_shoff != 0); in __elfN()
120 shdr = (const Elf_Shdr *)(base + ehdr->e_shoff); in __elfN()
/freebsd/contrib/file/src/
H A Dreadelf.h99 Elf32_Off e_shoff; member
116 Elf64_Off e_shoff; member
H A Delfclass.h69 CAST(off_t, elf_getu(swap, elfhdr.e_shoff)), shnum,
/freebsd/sys/kern/
H A Dkern_ctf.c126 if (nbytes == 0 || hdr->e_shoff == 0 || in link_elf_ctf_get()
137 hdr->e_shoff, UIO_SYSSPACE, IO_NODELOCKED, td->td_ucred, NOCRED, in link_elf_ctf_get()
/freebsd/usr.bin/gprof/
H A Delf.c83 shdrs = (const Elf_Shdr *)(base + h.e_shoff); in elf_getnfile()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.cpp90 result &= e_shoff != 0; in HasHeaderExtension()
100 lldb_private::DataExtractor sh_data(data, e_shoff, e_shentsize); in ParseHeaderExtension()
H A DELFHeader.h60 elf_off e_shoff; ///< File offset of section header table. member
/freebsd/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
/freebsd/lib/libc/gen/
H A Dnlist.c156 (off_t)ehdr.e_shoff); in __elf_fdnlist()
/freebsd/contrib/llvm-project/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp257 ElfHeader.e_shoff = in ELFStubBuilder()
262 return ElfHeader.e_shoff + ElfHeader.e_shnum * sizeof(Elf_Shdr); in getSize()
331 return ElfHeader.e_shoff + Sec.Index * sizeof(Elf_Shdr); in shdrOffset()
/freebsd/stand/common/
H A Dload_elf.c146 CONVERT_FIELD(b, e_shoff, e); \ in elf_header_convert()
709 if (chunk == 0 || ehdr->e_shoff == 0)
711 shdr = alloc_pread(VECTX_HANDLE(ef), ehdr->e_shoff, chunk);
1016 shdr = alloc_pread(VECTX_HANDLE(&ef), ef.ehdr->e_shoff, size);
H A Dload_elf_obj.c144 if (hdr->e_shnum * hdr->e_shentsize == 0 || hdr->e_shoff == 0 || in __elfN()
240 shdr = alloc_pread(VECTX_HANDLE(ef), (off_t)hdr->e_shoff, shdrbytes); in __elfN()
/freebsd/contrib/elftoolchain/elfcopy/
H A Dbinary.c279 oeh.e_shoff = shtab->off; in create_elf_from_binary()
H A Dascii.c393 oeh.e_shoff = shtab->off; in create_elf_from_srec()
617 oeh.e_shoff = shtab->off; in create_elf_from_ihex()
/freebsd/sys/x86/xen/
H A Dpv.c287 shdr = (Elf_Shdr *)((uint8_t *)ehdr + ehdr->e_shoff); in xen_pvh_parse_symtab()
/freebsd/usr.bin/gcore/
H A Delfcore.c510 ehdr->e_shoff = ehdr->e_phoff + in elf_puthdr()
513 shdr = (Elf_Shdr *)((char *)hdr + ehdr->e_shoff); in elf_puthdr()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DELF.h68 Elf32_Off e_shoff; // Section header table's file offset, in bytes member
94 Elf64_Off e_shoff; member

123