Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/
H A Dinvalid-e_phoff.test2 ## 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 Dinvalid-phdr.test7 … 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 Dprogram-headers.test317 …: 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 DELFHeader.cpp106 e_phnum = section_zero.sh_info; in ParseHeaderExtension()
146 e_phnum = e_phnum_hdr; in Parse()
H A DELFHeader.h75 elf_word e_phnum; ///< Number of program header entries. member
H A DObjectFileELF.cpp988 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 DInstrProfilingPlatformLinux.c185 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 Dheader-sh-fields.yaml83 ## Override the e_phnum field.
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DELF.h282 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 DELFTypes.h492 Elf_Half e_phnum; // Number of entries in the program header table
/llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/
H A DELF.h72 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 Dhwasan_report.cpp281 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 Dhwasan.cpp320 __ehdr_start.e_phnum)) in __hwasan_init_static()
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/
H A Dprogram-headers.test719 …: 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 DELFObject.cpp1433 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 DELFEmitter.cpp497 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 Dinvalid.test676 … 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 DRewriteInstance.cpp522 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 Dsanitizer_linux.cpp1243 char *phdrs_end = phdrs + ehdr->e_phnum * ehdr->e_phentsize; in ForEachMappedRegion()
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Delf2yaml.cpp245 ExpectedOffset = Header.e_phoff + Header.e_phentsize * Header.e_phnum; in dumpSectionOffsets()
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DELFDumper.cpp3380 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 DSyntheticSections.cpp3748 eHdr->e_phnum = part.phdrs.size(); in writeEhdr()