Home
last modified time | relevance | path

Searched refs:Ehdr (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Object/
H A DELFObjectFileTest.cpp29 Ehdr.e_ident[ELF::EI_MAG0] = 0x7f; in makeElfData()
30 Ehdr.e_ident[ELF::EI_MAG1] = 'E'; in makeElfData()
31 Ehdr.e_ident[ELF::EI_MAG2] = 'L'; in makeElfData()
32 Ehdr.e_ident[ELF::EI_MAG3] = 'F'; in makeElfData()
33 Ehdr.e_ident[ELF::EI_CLASS] = Class; in makeElfData()
35 Ehdr.e_ident[ELF::EI_VERSION] = 1; in makeElfData()
36 Ehdr.e_type = ELF::ET_REL; in makeElfData()
37 Ehdr.e_machine = Machine; in makeElfData()
38 Ehdr.e_version = 1; in makeElfData()
39 Ehdr.e_ehsize = sizeof(T); in makeElfData()
[all …]
H A DXCOFFObjectFileTest.cpp21 char Buf[sizeof(typename ELF64LE::Ehdr)] = {}; in TEST()
24 auto *EHdr = reinterpret_cast<typename ELF64LE::Ehdr *>(Buf); in TEST()
/llvm-project-15.0.7/bolt/unittests/Core/
H A DBinaryContext.cpp33 ELF64LE::Ehdr *EHdr = reinterpret_cast<typename ELF64LE::Ehdr *>(ElfBuf); in prepareElf()
47 char ElfBuf[sizeof(typename ELF64LE::Ehdr)] = {};
H A DMCPlusBuilder.cpp43 ELF64LE::Ehdr *EHdr = reinterpret_cast<typename ELF64LE::Ehdr *>(ElfBuf); in prepareElf()
71 char ElfBuf[sizeof(typename ELF64LE::Ehdr)] = {};
/llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp1423 const typename ELFT::Ehdr &Ehdr = HeadersFile.getHeader(); in readProgramHeaders() local
1433 PrHdr.FileSize = PrHdr.MemSize = Ehdr.e_phentsize * Ehdr.e_phnum; in readProgramHeaders()
1860 Obj.Type = Ehdr.e_type; in build()
1943 std::fill(Ehdr.e_ident, Ehdr.e_ident + 16, 0); in writeEhdr()
1949 Ehdr.e_ident[EI_DATA] = 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()
1977 Ehdr.e_shnum = 0; in writeEhdr()
1992 Ehdr.e_shoff = 0; in writeEhdr()
1993 Ehdr.e_shnum = 0; in writeEhdr()
[all …]
H A DELFObject.h326 using Elf_Ehdr = typename ELFT::Ehdr;
/llvm-project-15.0.7/compiler-rt/lib/profile/
H A DInstrProfilingPlatformLinux.c177 extern const ElfW(Ehdr) __ehdr_start __attribute__((visibility("hidden"))); in __llvm_write_binary_ids()
178 const ElfW(Ehdr) *ElfHeader = &__ehdr_start; in __llvm_write_binary_ids()
/llvm-project-15.0.7/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp51 static void initELFHeader(typename ELFT::Ehdr &ElfHeader, uint16_t Machine) { in initELFHeader()
68 ElfHeader.e_ehsize = sizeof(typename ELFT::Ehdr); in initELFHeader()
171 using Elf_Ehdr = typename ELFT::Ehdr;
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DELFTypes.h58 using Ehdr = Elf_Ehdr_Impl<ELFType<E, Is64>>; member
113 using Elf_Ehdr = typename ELFT::Ehdr; \
/llvm-project-15.0.7/compiler-rt/lib/cfi/
H A Dcfi.cpp27 typedef ElfW(Ehdr) Elf_Ehdr;
/llvm-project-15.0.7/compiler-rt/lib/hwasan/
H A Dhwasan.cpp314 extern ElfW(Ehdr) __ehdr_start; in __hwasan_init_static()
H A Dhwasan_report.cpp271 auto *ehdr = reinterpret_cast<const ElfW(Ehdr) *>(info.dli_fbase); in GetGlobalSizeFromDescriptor()
/llvm-project-15.0.7/lld/ELF/
H A DSyntheticSections.cpp3738 auto *eHdr = reinterpret_cast<typename ELFT::Ehdr *>(buf); in writeEhdr()
3747 eHdr->e_ehsize = sizeof(typename ELFT::Ehdr); in writeEhdr()
3752 eHdr->e_phoff = sizeof(typename ELFT::Ehdr); in writeEhdr()
3779 return sizeof(typename ELFT::Ehdr); in getSize()
3787 auto *eHdr = reinterpret_cast<typename ELFT::Ehdr *>(buf); in writeTo()
H A DWriter.cpp2057 Out::elfHeader->size = sizeof(typename ELFT::Ehdr); in finalizeSections()
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Delf2yaml.cpp236 static void dumpSectionOffsets(const typename ELFT::Ehdr &Header, in dumpSectionOffsets()
247 ExpectedOffset = sizeof(typename ELFT::Ehdr); in dumpSectionOffsets()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp1238 typedef ElfW(Ehdr) Elf_Ehdr; in ForEachMappedRegion()
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DELFDumper.cpp3255 const typename ELFT::Ehdr &ElfHeader = Obj.getHeader(); in getSectionHeadersNumString()
3275 const typename ELFT::Ehdr &ElfHeader = Obj.getHeader(); in getSectionHeaderTableIndexString()