| /llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/ |
| H A D | invalid-e_phoff.test | 2 ## such that e_phoff + e_phnum * sizeof(Elf_Phdr) is past the end of the file, 18 # CASE1: error: program headers are longer than binary of size 65: e_phoff = 0x40, e_phnum = 1, e_p… 33 # CASE2: error: program headers are longer than binary of size 120: e_phoff = 0x40000000, e_phnum =…
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-objdump/ELF/ |
| H A D | invalid-phdr.test | 7 … program headers are longer than binary of size 280: e_phoff = 0xffffff, e_phnum = 0, e_phentsize … 8 … program headers are longer than binary of size 280: e_phoff = 0xffffff, e_phnum = 0, e_phentsize …
|
| H A D | program-headers.test | 317 …: program headers are longer than binary of size 408: e_phoff = [[OFF]], e_phnum = 1, e_phentsize … 318 …: program headers are longer than binary of size 408: e_phoff = [[OFF]], e_phnum = 1, e_phentsize … 322 ## e_phoff + e_phnum * e_phentsize > UINT64_MAX.
|
| /llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/ELF/ |
| H A D | ELFHeader.cpp | 106 e_phnum = section_zero.sh_info; in ParseHeaderExtension() 146 e_phnum = e_phnum_hdr; in Parse()
|
| H A D | ELFHeader.h | 75 elf_word e_phnum; ///< Number of program header entries. member
|
| H A D | ObjectFileELF.cpp | 988 if (header.e_phnum == 0) in GetProgramHeaderInfo() 991 program_headers.resize(header.e_phnum); in GetProgramHeaderInfo() 992 if (program_headers.size() != header.e_phnum) in GetProgramHeaderInfo() 995 const size_t ph_size = header.e_phnum * header.e_phentsize; in GetProgramHeaderInfo() 1003 for (idx = 0, offset = 0; idx < header.e_phnum; ++idx) { in GetProgramHeaderInfo() 3039 s->Printf("e_phnum = 0x%8.8x\n", header.e_phnum); in DumpELFHeader()
|
| /llvm-project-15.0.7/compiler-rt/lib/profile/ |
| H A D | InstrProfilingPlatformLinux.c | 185 for (I = 0; I < ElfHeader->e_phnum; I++) { in __llvm_write_binary_ids()
|
| /llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/ |
| H A D | header-sh-fields.yaml | 83 ## Override the e_phnum field.
|
| /llvm-project-15.0.7/llvm/include/llvm/Object/ |
| H A D | ELF.h | 282 if (getHeader().e_phnum && getHeader().e_phentsize != sizeof(Elf_Phdr)) in program_headers() 287 (uint64_t)getHeader().e_phnum * getHeader().e_phentsize; in program_headers() 293 ", e_phnum = " + Twine(getHeader().e_phnum) + in program_headers() 297 return makeArrayRef(Begin, Begin + getHeader().e_phnum); in program_headers()
|
| H A D | ELFTypes.h | 492 Elf_Half e_phnum; // Number of entries in the program header table
|
| /llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/ |
| H A D | ELF.h | 72 Elf32_Half e_phnum; // Number of entries in the program header table member 98 Elf64_Half e_phnum; member
|
| /llvm-project-15.0.7/compiler-rt/lib/hwasan/ |
| H A D | hwasan_report.cpp | 281 ArrayRef<const ElfW(Phdr)>(phdr_begin, phdr_begin + ehdr->e_phnum)) { in GetGlobalSizeFromDescriptor() 292 HwasanGlobalsFor(load_bias, phdr_begin, ehdr->e_phnum)) in GetGlobalSizeFromDescriptor()
|
| H A D | hwasan.cpp | 320 __ehdr_start.e_phnum)) in __hwasan_init_static()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/ |
| H A D | program-headers.test | 719 …: program headers are longer than binary of size 408: e_phoff = [[OFF]], e_phnum = 1, e_phentsize … 722 …: program headers are longer than binary of size 408: e_phoff = [[OFF]], e_phnum = 1, e_phentsize … 725 …: program headers are longer than binary of size 408: e_phoff = [[OFF]], e_phnum = 1, e_phentsize … 729 ## e_phoff + e_phnum * e_phentsize > UINT64_MAX.
|
| /llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.cpp | 1433 PrHdr.FileSize = PrHdr.MemSize = Ehdr.e_phentsize * Ehdr.e_phnum; in readProgramHeaders() 1961 Ehdr.e_phnum = llvm::size(Obj.segments()); in writeEhdr() 1962 Ehdr.e_phoff = (Ehdr.e_phnum != 0) ? Obj.ProgramHdrSegment.Offset : 0; in writeEhdr() 1963 Ehdr.e_phentsize = (Ehdr.e_phnum != 0) ? sizeof(Elf_Phdr) : 0; in writeEhdr()
|
| /llvm-project-15.0.7/llvm/lib/ObjectYAML/ |
| H A D | ELFEmitter.cpp | 497 Header.e_phnum = *Doc.Header.EPhNum; in writeELFHeader() 499 Header.e_phnum = Doc.ProgramHeaders.size(); in writeELFHeader() 501 Header.e_phnum = 0; in writeELFHeader()
|
| /llvm-project-15.0.7/llvm/test/Object/ |
| H A D | invalid.test | 676 … program headers are longer than binary of size 280: e_phoff = 0xffffff, e_phnum = 0, e_phentsize …
|
| /llvm-project-15.0.7/bolt/lib/Rewrite/ |
| H A D | RewriteInstance.cpp | 522 unsigned Phnum = Obj.getHeader().e_phnum; in discoverStorage() 3881 Phnum = Obj.getHeader().e_phnum; in patchELFPHDRTable() 4439 NewEhdr.e_phnum = Phnum; in patchELFSectionHeaderTable()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_linux.cpp | 1243 char *phdrs_end = phdrs + ehdr->e_phnum * ehdr->e_phentsize; in ForEachMappedRegion()
|
| /llvm-project-15.0.7/llvm/tools/obj2yaml/ |
| H A D | elf2yaml.cpp | 245 ExpectedOffset = Header.e_phoff + Header.e_phentsize * Header.e_phnum; in dumpSectionOffsets()
|
| /llvm-project-15.0.7/llvm/tools/llvm-readobj/ |
| H A D | ELFDumper.cpp | 3380 Str = to_string(e.e_phnum); in printFileHeaders() 4277 << "There are " << Header.e_phnum << " program headers," in printProgramHeaders() 6529 W.printNumber("ProgramHeaderCount", E.e_phnum); in printFileHeaders()
|
| /llvm-project-15.0.7/lld/ELF/ |
| H A D | SyntheticSections.cpp | 3748 eHdr->e_phnum = part.phdrs.size(); in writeEhdr()
|