| /llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/ |
| H A D | invalid-e_phoff.test | 1 ## If the e_phoff field is set to a value either past the end of the file, or 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… 20 ## Set the e_phoff field to a value much larger than the object file size. 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 | 1 ## Test how we handle the case when the e_phoff field is invalid. 7 …ead program headers: program headers are longer than binary of size 280: e_phoff = 0xffffff, e_phn… 8 …warning: '[[FILE]]': program headers are longer than binary of size 280: e_phoff = 0xffffff, e_phn…
|
| H A D | program-headers.test | 304 ## Case B: the value of the e_phoff field is invalid. 311 ## Check we report a warning / error when e_phoff goes 1 byte past the end of the file. 317 …ead program headers: program headers are longer than binary of size 408: e_phoff = [[OFF]], e_phnu… 318 # PHOFF-NEXT: warning: '[[FILE]]': program headers are longer than binary of size 408: e_phoff = [[… 321 ## Check we report a warning / error when the value of e_phoff is so large that 322 ## e_phoff + e_phnum * e_phentsize > UINT64_MAX.
|
| /llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/ |
| H A D | no-phdrs.yaml | 1 ## Check that e_phoff and e_phentsize are set to 0 when there are no
|
| H A D | header-sh-fields.yaml | 77 ## Override the e_phoff field.
|
| /llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/ELF/ |
| H A D | ELFHeader.h | 59 elf_off e_phoff; ///< File offset of program header table. member
|
| H A D | ObjectFileELF.cpp | 996 const elf_off ph_offset = header.e_phoff; in GetProgramHeaderInfo() 3034 s->Printf("e_phoff = 0x%8.8" PRIx64 "\n", header.e_phoff); in DumpELFHeader()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/ |
| H A D | program-headers.test | 702 ## Case B: the value of the e_phoff field is invalid. 710 ## Check we report a warning when e_phoff goes 1 byte past the end of the file. 719 …ump program headers: program headers are longer than binary of size 408: e_phoff = [[OFF]], e_phnu… 722 … to segment mapping: program headers are longer than binary of size 408: e_phoff = [[OFF]], e_phnu… 725 …ump program headers: program headers are longer than binary of size 408: e_phoff = [[OFF]], e_phnu… 728 ## Check we report a warning when the value of e_phoff is so large that 729 ## e_phoff + e_phnum * e_phentsize > UINT64_MAX.
|
| /llvm-project-15.0.7/compiler-rt/lib/profile/ |
| H A D | InstrProfilingPlatformLinux.c | 180 (const ElfW(Phdr) *)((uintptr_t)ElfHeader + ElfHeader->e_phoff); in __llvm_write_binary_ids()
|
| /llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/ |
| H A D | ELF.h | 67 Elf32_Off e_phoff; // Program header table's file offset, in bytes member 93 Elf64_Off e_phoff; member
|
| /llvm-project-15.0.7/compiler-rt/lib/hwasan/ |
| H A D | hwasan.cpp | 319 __ehdr_start.e_phoff), in __hwasan_init_static()
|
| H A D | hwasan_report.cpp | 273 reinterpret_cast<const u8 *>(ehdr) + ehdr->e_phoff); in GetGlobalSizeFromDescriptor()
|
| /llvm-project-15.0.7/llvm/include/llvm/Object/ |
| H A D | ELF.h | 288 uint64_t PhOff = getHeader().e_phoff; in program_headers() 292 Twine::utohexstr(getHeader().e_phoff) + in program_headers()
|
| H A D | ELFTypes.h | 487 Elf_Off e_phoff; // Program header table's file offset, in bytes
|
| /llvm-project-15.0.7/llvm/test/Object/ |
| H A D | invalid.test | 672 ## Check the case when the e_phoff field is invalid. 676 # INVALID-PHOFF: warning: '[[FILE]]': program headers are longer than binary of size 280: e_phoff =…
|
| /llvm-project-15.0.7/llvm/lib/ObjectYAML/ |
| H A D | ELFEmitter.cpp | 483 Header.e_phoff = *Doc.Header.EPhOff; in writeELFHeader() 485 Header.e_phoff = sizeof(Header); in writeELFHeader() 487 Header.e_phoff = 0; in writeELFHeader()
|
| /llvm-project-15.0.7/llvm/tools/obj2yaml/ |
| H A D | elf2yaml.cpp | 244 if (Header.e_phoff > 0) in dumpSectionOffsets() 245 ExpectedOffset = Header.e_phoff + Header.e_phentsize * Header.e_phnum; in dumpSectionOffsets()
|
| /llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.cpp | 1431 PrHdr.OriginalOffset = PrHdr.Offset = PrHdr.VAddr = EhdrOffset + Ehdr.e_phoff; in readProgramHeaders() 1962 Ehdr.e_phoff = (Ehdr.e_phnum != 0) ? Obj.ProgramHdrSegment.Offset : 0; in writeEhdr()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_linux.cpp | 1242 char *phdrs = base + ehdr->e_phoff; in ForEachMappedRegion()
|
| /llvm-project-15.0.7/bolt/lib/Rewrite/ |
| H A D | RewriteInstance.cpp | 3890 PHDRTableOffset = Obj.getHeader().e_phoff; in patchELFPHDRTable() 4438 NewEhdr.e_phoff = PHDRTableOffset; in patchELFSectionHeaderTable()
|
| /llvm-project-15.0.7/llvm/tools/llvm-readobj/ |
| H A D | ELFDumper.cpp | 3354 Str = to_string(e.e_phoff) + " (bytes into file)"; in printFileHeaders() 4278 << " starting at offset " << Header.e_phoff << "\n\n" in printProgramHeaders() 6489 W.printHex("ProgramHeaderOffset", E.e_phoff); in printFileHeaders()
|
| /llvm-project-15.0.7/lld/ELF/ |
| H A D | SyntheticSections.cpp | 3752 eHdr->e_phoff = sizeof(typename ELFT::Ehdr); in writeEhdr()
|