Home
last modified time | relevance | path

Searched refs:e_phoff (Results 1 – 25 of 117) sorted by relevance

12345

/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Delfcore.h163 if (i_ehdrp->e_phoff == 0 || i_ehdrp->e_type != ET_CORE) in elf_core_file_p()
214 where = (file_ptr)(i_ehdrp->e_phoff + (i_ehdrp->e_phnum - 1) * sizeof (x_phdr)); in elf_core_file_p()
215 if ((bfd_size_type) where <= i_ehdrp->e_phoff) in elf_core_file_p()
225 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_core_file_p()
370 if (bfd_seek (abfd, (file_ptr) (offset + i_ehdr.e_phoff), SEEK_SET) != 0) in NAME()
388 if (bfd_seek (abfd, (file_ptr) (offset + i_ehdr.e_phoff in NAME()
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Delfcore.h163 if (i_ehdrp->e_phoff == 0 || i_ehdrp->e_type != ET_CORE) in elf_core_file_p()
214 where = (file_ptr)(i_ehdrp->e_phoff + (i_ehdrp->e_phnum - 1) * sizeof (x_phdr)); in elf_core_file_p()
215 if ((bfd_size_type) where <= i_ehdrp->e_phoff) in elf_core_file_p()
225 if (bfd_seek (abfd, i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_core_file_p()
370 if (bfd_seek (abfd, offset + i_ehdr.e_phoff, SEEK_SET) != 0) in NAME()
389 offset + i_ehdr.e_phoff + (i + 1) * sizeof (x_phdr), in NAME()
/netbsd-src/external/bsd/elftoolchain/dist/libelf/
H A Dgelf_ehdr.c82 d->e_phoff = eh32->e_phoff; in gelf_getehdr()
165 LIBELF_COPY_U32(eh32, s, e_phoff); in gelf_update_ehdr()
H A Dlibelf_phdr.c79 phoff = (uint64_t) eh32->e_phoff; in _libelf_getphdr()
82 phoff = (uint64_t) eh64->e_phoff; in _libelf_getphdr()
H A Delf_update.c547 phoff = (off_t) eh32->e_phoff; in _libelf_resync_elf()
553 phoff = (off_t) eh64->e_phoff; in _libelf_resync_elf()
711 eh32->e_phoff = (uint32_t) phoff; in _libelf_resync_elf()
714 eh64->e_phoff = (uint64_t) phoff; in _libelf_resync_elf()
919 phoff = (uint64_t) eh32->e_phoff; in _libelf_write_phdr()
922 phoff = eh64->e_phoff; in _libelf_write_phdr()
/netbsd-src/sys/lib/libsa/
H A Dloadfile_elf32.c97 I32(ehdr->e_phoff); in internalize_ehdr()
111 I64(ehdr->e_phoff); in internalize_ehdr()
134 E32(ehdr->e_phoff); in externalize_ehdr()
148 E64(ehdr->e_phoff); in externalize_ehdr()
378 elf->e_phoff = 0; in ELFNAMEEND()
709 ret = ELFNAMEEND(readfile_local)(fd, elf->e_phoff, phdr, sz); in ELFNAMEEND()
794 elf->e_phoff = 0; in ELFNAMEEND()
/netbsd-src/external/bsd/file/dist/src/
H A Delfclass.h46 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
61 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
H A Dreadelf.h100 Elf32_Off e_phoff; member
117 Elf64_Off e_phoff; member
/netbsd-src/usr.sbin/mopd/common/
H A Dfile.c460 uint32_t e_phoff, e_phentsize, e_phnum; in GetElfFileInfo()
489 e_phoff = mopFileGetLX((u_char *) &ehdr, in GetElfFileInfo()
490 offsetof(Elf32_Ehdr, e_phoff), in GetElfFileInfo()
491 sizeof(ehdr.e_phoff)); in GetElfFileInfo()
508 e_phoff = mopFileGetBX((u_char *) &ehdr, in GetElfFileInfo()
509 offsetof(Elf32_Ehdr, e_phoff), in GetElfFileInfo()
510 sizeof(ehdr.e_phoff)); in GetElfFileInfo()
531 if (lseek(dl->ldfd, (off_t) e_phoff + (i * e_phentsize), in GetElfFileInfo()
/netbsd-src/libexec/ld.elf_so/
H A Dmap_object.c168 assert(ehdr->e_phoff + ehdr->e_phnum * sizeof(Elf_Phdr) <= in _rtld_map_object()
177 phdr = (Elf_Phdr *) ((caddr_t)ehdr + ehdr->e_phoff); in _rtld_map_object()
270 phdr = (Elf_Phdr *) ((caddr_t)ehdr + ehdr->e_phoff); in _rtld_map_object()
423 if (segs[i]->p_offset <= ehdr->e_phoff && in _rtld_map_object()
425 phdr_vaddr = segs[i]->p_vaddr + ehdr->e_phoff; in _rtld_map_object()
/netbsd-src/external/gpl3/binutils.old/dist/include/elf/
H A Dexternal.h58 unsigned char e_phoff[4]; /* Program header table file offset */ member
75 unsigned char e_phoff[8]; /* Program header table file offset */ member
/netbsd-src/external/gpl3/binutils/dist/include/elf/
H A Dexternal.h58 unsigned char e_phoff[4]; /* Program header table file offset */ member
75 unsigned char e_phoff[8]; /* Program header table file offset */ member
/netbsd-src/sys/arch/hpc/stand/hpcboot/
H A Dload_elf.cpp93 if (_file->read(_ph, sz, _eh.e_phoff) != sz) { in setFile()
219 eh->e_phoff = 0; in symbol_block_size()
328 if (_eh.e_phoff == 0 || _eh.e_phnum == 0 || _eh.e_phnum > 16 || in read_header()
/netbsd-src/external/bsd/elftosb/dist/common/
H A DStELFFile.cpp55 m_header.e_phoff = ENDIAN_LITTLE_TO_HOST_U32(m_header.e_phoff); in readFileHeaders()
105 if (m_header.e_phoff != 0 && m_header.e_phnum > 0) in readFileHeaders()
110 m_stream.seekg(m_header.e_phoff + m_header.e_phentsize * i, std::ios::beg); in readFileHeaders()
/netbsd-src/external/gpl3/binutils/dist/binutils/
H A Delfedit.c116 = (Elf32_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
132 = (Elf64_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
479 elf_header.e_phoff = BYTE_GET (ehdr32.e_phoff); in get_file_header()
512 elf_header.e_phoff = BYTE_GET (ehdr64.e_phoff); in get_file_header()
/netbsd-src/external/gpl3/binutils.old/dist/binutils/
H A Delfedit.c116 = (Elf32_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
132 = (Elf64_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
479 elf_header.e_phoff = BYTE_GET (ehdr32.e_phoff); in get_file_header()
512 elf_header.e_phoff = BYTE_GET (ehdr64.e_phoff); in get_file_header()
/netbsd-src/external/gpl3/binutils/dist/gprofng/libcollector/
H A Dlinetrace.c405 Elf64_Off e_phoff; in check_fd_dynamic() local
410 e_phoff = ehdr32->e_phoff; in check_fd_dynamic()
416 e_phoff = ehdr64->e_phoff; in check_fd_dynamic()
422 (e_phoff + e_phentsize * (e_phnum - 1) > sz)) in check_fd_dynamic()
433 (int) elfclass, (unsigned long) e_phoff, (unsigned long) e_phnum, in check_fd_dynamic()
442 ((Elf32_Phdr*) (p + e_phoff + e_phentsize * i))->p_type) in check_fd_dynamic()
451 ((Elf64_Phdr*) (p + e_phoff + e_phentsize * i))->p_type) in check_fd_dynamic()
/netbsd-src/external/gpl3/binutils.old/dist/gprofng/libcollector/
H A Dlinetrace.c385 Elf64_Off e_phoff; in check_fd_dynamic() local
390 e_phoff = ehdr32->e_phoff; in check_fd_dynamic()
396 e_phoff = ehdr64->e_phoff; in check_fd_dynamic()
402 (e_phoff + e_phentsize * (e_phnum - 1) > sz)) in check_fd_dynamic()
413 (int) elfclass, (unsigned long) e_phoff, (unsigned long) e_phnum, in check_fd_dynamic()
422 ((Elf32_Phdr*) (p + e_phoff + e_phentsize * i))->p_type) in check_fd_dynamic()
431 ((Elf64_Phdr*) (p + e_phoff + e_phentsize * i))->p_type) in check_fd_dynamic()
/netbsd-src/sys/arch/zaurus/stand/zbsdmod/
H A Dzbsdmod.c108 #define phdr ((Elf32_Phdr *)((char *)elf + elf->e_phoff)) in elf32bsdboot()
226 ((Elf_Ehdr *)elfv)->e_phoff = 0; in elf32bsdboot()
/netbsd-src/sys/arch/hppa/stand/xxboot/
H A Dmain.c353 ph = (void *) (top + hdr->e_phoff); in xi_elf32()
374 ph = (void *) (top + (unsigned) hdr->e_phoff); in xi_elf64()
/netbsd-src/sys/kern/
H A Dcore_elf32.c188 ehdr.e_phoff = sizeof(ehdr); in ELFNAMEEND()
194 ehdr.e_phoff = sizeof(ehdr) + sizeof(shdr); in ELFNAMEEND()
220 notestart = ehdr.e_phoff + psectionssize; in ELFNAMEEND()
/netbsd-src/sys/arch/hpcmips/stand/pbsdboot/
H A Delf.c159 if (lseek(fd, elf->e_phoff, SEEK_SET) == -1) { in scanfile()
268 dbg_eh.e_phoff = 0; in scanfile()
/netbsd-src/sys/arch/mvme68k/stand/bootxx/
H A Dbootxx.c138 Elf32_Phdr *ep = (Elf32_Phdr *)(*addr + x->eh.e_phoff); in copyboot()
/netbsd-src/sys/arch/mipsco/stand/common/
H A Dbootxx.c146 if (lseek(fd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0) in loadfile()
/netbsd-src/usr.bin/elf2aout/
H A Delf2aout.c256 ex.e_phoff = bswap32(ex.e_phoff); in main()
271 ph = saveRead(infile, ex.e_phoff, in main()

12345