Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/
H A Dinvalid-e_phoff.test1 ## 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 Dinvalid-phdr.test1 ## 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 Dprogram-headers.test304 ## 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 Dno-phdrs.yaml1 ## Check that e_phoff and e_phentsize are set to 0 when there are no
H A Dheader-sh-fields.yaml77 ## Override the e_phoff field.
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h59 elf_off e_phoff; ///< File offset of program header table. member
H A DObjectFileELF.cpp996 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 Dprogram-headers.test702 ## 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 DInstrProfilingPlatformLinux.c180 (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 DELF.h67 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 Dhwasan.cpp319 __ehdr_start.e_phoff), in __hwasan_init_static()
H A Dhwasan_report.cpp273 reinterpret_cast<const u8 *>(ehdr) + ehdr->e_phoff); in GetGlobalSizeFromDescriptor()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DELF.h288 uint64_t PhOff = getHeader().e_phoff; in program_headers()
292 Twine::utohexstr(getHeader().e_phoff) + in program_headers()
H A DELFTypes.h487 Elf_Off e_phoff; // Program header table's file offset, in bytes
/llvm-project-15.0.7/llvm/test/Object/
H A Dinvalid.test672 ## 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 DELFEmitter.cpp483 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 Delf2yaml.cpp244 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 DELFObject.cpp1431 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 Dsanitizer_linux.cpp1242 char *phdrs = base + ehdr->e_phoff; in ForEachMappedRegion()
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DRewriteInstance.cpp3890 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 DELFDumper.cpp3354 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 DSyntheticSections.cpp3752 eHdr->e_phoff = sizeof(typename ELFT::Ehdr); in writeEhdr()