Home
last modified time | relevance | path

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

123456

/netbsd/external/gpl3/gdb/dist/gdb/testsuite/gdb.arch/
H A Ds390-multiarch.c31 uint32_t e_phoff; member
49 uint64_t e_phoff; member
109 ->e_phoff])[idx].memb \
111 ->e_phoff])[idx].memb)
183 || ELFBUF_EHDR (elf, e_phoff) > len in elfbuf_init_from_file()
184 || ELFBUF_EHDR (elf, e_phnum) > ((len - ELFBUF_EHDR (elf, e_phoff)) in elfbuf_init_from_file()
/netbsd/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.arch/
H A Ds390-multiarch.c31 uint32_t e_phoff; member
49 uint64_t e_phoff; member
109 ->e_phoff])[idx].memb \
111 ->e_phoff])[idx].memb)
183 || ELFBUF_EHDR (elf, e_phoff) > len in elfbuf_init_from_file()
184 || ELFBUF_EHDR (elf, e_phnum) > ((len - ELFBUF_EHDR (elf, e_phoff)) in elfbuf_init_from_file()
/netbsd/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, (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/external/gpl3/binutils.old/dist/bfd/
H A Delfcore.h185 if (i_ehdrp->e_phoff == 0 || i_ehdrp->e_type != ET_CORE) in elf_core_file_p()
233 where = (file_ptr)(i_ehdrp->e_phoff + (i_ehdrp->e_phnum - 1) * sizeof (x_phdr)); in elf_core_file_p()
234 if ((bfd_size_type) where <= i_ehdrp->e_phoff) in elf_core_file_p()
244 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_core_file_p()
392 if (bfd_seek (abfd, (file_ptr) (offset + i_ehdr.e_phoff), SEEK_SET) != 0) in NAME()
/netbsd/external/gpl3/gdb/dist/bfd/
H A Delfcore.h185 if (i_ehdrp->e_phoff == 0 || i_ehdrp->e_type != ET_CORE) in elf_core_file_p()
233 where = (file_ptr)(i_ehdrp->e_phoff + (i_ehdrp->e_phnum - 1) * sizeof (x_phdr)); in elf_core_file_p()
234 if ((bfd_size_type) where <= i_ehdrp->e_phoff) in elf_core_file_p()
244 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_core_file_p()
397 if (bfd_seek (abfd, (file_ptr) (offset + i_ehdr.e_phoff), SEEK_SET) != 0) in NAME()
/netbsd/external/gpl3/gdb.old/dist/bfd/
H A Delfcore.h185 if (i_ehdrp->e_phoff == 0 || i_ehdrp->e_type != ET_CORE) in elf_core_file_p()
233 where = (file_ptr)(i_ehdrp->e_phoff + (i_ehdrp->e_phnum - 1) * sizeof (x_phdr)); in elf_core_file_p()
234 if ((bfd_size_type) where <= i_ehdrp->e_phoff) in elf_core_file_p()
244 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_core_file_p()
397 if (bfd_seek (abfd, (file_ptr) (offset + i_ehdr.e_phoff), SEEK_SET) != 0) in NAME()
/netbsd/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.c80 phoff = (uint64_t) eh32->e_phoff; in _libelf_getphdr()
83 phoff = (uint64_t) eh64->e_phoff; in _libelf_getphdr()
H A Delf_update.c540 phoff = (off_t) eh32->e_phoff; in _libelf_resync_elf()
546 phoff = (off_t) eh64->e_phoff; in _libelf_resync_elf()
704 eh32->e_phoff = (uint32_t) phoff; in _libelf_resync_elf()
707 eh64->e_phoff = (uint64_t) phoff; in _libelf_resync_elf()
903 phoff = (uint64_t) eh32->e_phoff; in _libelf_write_phdr()
906 phoff = eh64->e_phoff; in _libelf_write_phdr()
/netbsd/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,
/netbsd/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/usr.sbin/mopd/common/
H A Dfile.c456 uint32_t e_phoff, e_phentsize, e_phnum; in GetElfFileInfo()
485 e_phoff = mopFileGetLX((u_char *) &ehdr, in GetElfFileInfo()
486 offsetof(Elf32_Ehdr, e_phoff), in GetElfFileInfo()
487 sizeof(ehdr.e_phoff)); in GetElfFileInfo()
504 e_phoff = mopFileGetBX((u_char *) &ehdr, in GetElfFileInfo()
505 offsetof(Elf32_Ehdr, e_phoff), in GetElfFileInfo()
506 sizeof(ehdr.e_phoff)); in GetElfFileInfo()
527 if (lseek(dl->ldfd, (off_t) e_phoff + (i * e_phentsize), in GetElfFileInfo()
/netbsd/external/gpl3/gdb/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/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/external/gpl3/gdb.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/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()
421 if (segs[i]->p_offset <= ehdr->e_phoff && in _rtld_map_object()
423 phdr_vaddr = segs[i]->p_vaddr + ehdr->e_phoff; in _rtld_map_object()
/netbsd/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/external/gpl3/gdb/dist/binutils/
H A Delfedit.c113 = (Elf32_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
129 = (Elf64_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
456 elf_header.e_phoff = BYTE_GET (ehdr32.e_phoff); in get_file_header()
489 elf_header.e_phoff = BYTE_GET (ehdr64.e_phoff); in get_file_header()
/netbsd/external/gpl3/binutils.old/dist/binutils/
H A Delfedit.c113 = (Elf32_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
129 = (Elf64_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
456 elf_header.e_phoff = BYTE_GET (ehdr32.e_phoff); in get_file_header()
489 elf_header.e_phoff = BYTE_GET (ehdr64.e_phoff); in get_file_header()
/netbsd/external/gpl3/gdb.old/dist/binutils/
H A Delfedit.c113 = (Elf32_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
129 = (Elf64_External_Phdr *) (map + elf_header.e_phoff); in update_gnu_property()
456 elf_header.e_phoff = BYTE_GET (ehdr32.e_phoff); in get_file_header()
489 elf_header.e_phoff = BYTE_GET (ehdr64.e_phoff); in get_file_header()
/netbsd/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/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/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/external/gpl3/binutils/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/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()

123456