Home
last modified time | relevance | path

Searched refs:e_machine (Results 1 – 25 of 34) sorted by relevance

12

/llvm-project-15.0.7/llvm/test/tools/obj2yaml/ELF/
H A Demachine.yaml1 ## Check how obj2yaml dumps e_machine field.
3 ## Check it dumps an unknown e_machine as a number.
22 ## Check it dumps a known e_machine value as an enum string.
27 ## Check it doesn't dump e_machine when it is EM_NONE (0).
H A Drelocation-type.yaml3 ## Show that obj2yaml is able to dump relocation types when `e_machine` kind is unknown.
27 ## Show how obj2yaml dumps relocation types when `e_machine` kind is known.
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DELF.cpp38 return File->getHeader().e_machine; in readTargetMachineArch()
44 return File->getHeader().e_machine; in readTargetMachineArch()
/llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/
H A Drelocation-type.yaml3 ## Show that yaml2obj is able to produce relocations for an unknown e_machine kind properly.
14 ## Show that yaml2obj is able to produce relocations for an arbitrary known e_machine kind properly.
H A Deflags.yaml4 ## e_machine type that has no EF_* values defined for it.
H A Demachine.yaml1 ## Test how the Machine YAML field can be used to set the e_machine ELF header field.
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DELFObjectFile.h560 if ((Header.e_machine == ELF::EM_ARM || Header.e_machine == ELF::EM_MIPS) && in getSymbolValueImpl()
626 return EF.getHeader().e_machine; in getEMachine()
734 if (EF.getHeader().e_machine == ELF::EM_AARCH64) { in getSymbolFlags()
743 } else if (EF.getHeader().e_machine == ELF::EM_ARM) { in getSymbolFlags()
756 } else if (EF.getHeader().e_machine == ELF::EM_RISCV) { in getSymbolFlags()
1051 return getELFRelocationTypeName(EF.getHeader().e_machine, Type); in getRelocationTypeName()
1182 switch (EF.getHeader().e_machine) { in getFileFormatName()
1220 switch (EF.getHeader().e_machine) { in getFileFormatName()
1256 switch (EF.getHeader().e_machine) { in getArch()
H A DELF.h144 return (object::getELFSectionTypeName(Obj.getHeader().e_machine, in describe()
244 return getHeader().e_machine == ELF::EM_MIPS && in isMipsELF64()
548 return getELFRelocationTypeName(getHeader().e_machine, Type); in getRelocationTypeName()
584 return getELFRelativeRelocationType(getHeader().e_machine); in getRelativeRelocationType()
1087 getHeader().e_machine, Section.sh_type))) in getStringTable()
1130 object::getELFSectionTypeName(getHeader().e_machine, SymTable.sh_type) + in getSHNDXTable()
/llvm-project-15.0.7/lld/test/ELF/lto/
H A Dhexagon.ll2 ;; Test we can infer the e_machine value EM_HEXAGON from a bitcode file.
H A Driscv.ll2 ;; Test we can infer the e_machine value EM_RISCV from a bitcode file.
H A Daarch64.ll2 ;; Test we can infer the e_machine value EM_AARCH64 from a bitcode file.
H A Dppc.ll2 ;; Test we can infer the e_machine value EM_PPC/EM_PPC64 from a bitcode file.
/llvm-project-15.0.7/bolt/unittests/Core/
H A DBinaryContext.cpp36 EHdr->e_machine = GetParam() == Triple::aarch64 ? EM_AARCH64 : EM_X86_64; in prepareElf()
H A DMCPlusBuilder.cpp46 EHdr->e_machine = GetParam() == Triple::aarch64 ? EM_AARCH64 : EM_X86_64; in prepareElf()
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/
H A Dfile-header-format.test4 ## e_ident[EI_DATA] and e_machine fields of an ELF file header.
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DELFDumper.cpp2245 switch (Obj.getHeader().e_machine) { in getDynamicEntry()
2632 switch (Obj.getHeader().e_machine) { in printArchSpecificInfo()
3359 if (e.e_machine == EM_MIPS) in printFileHeaders()
3364 else if (e.e_machine == EM_RISCV) in printFileHeaders()
3366 else if (e.e_machine == EM_AVR) in printFileHeaders()
3369 else if (e.e_machine == EM_LOONGARCH) in printFileHeaders()
6456 switch (E.e_machine) { in printFileHeaders()
6491 if (E.e_machine == EM_MIPS) in printFileHeaders()
6495 else if (E.e_machine == EM_AMDGPU) { in printFileHeaders()
6517 } else if (E.e_machine == EM_RISCV) in printFileHeaders()
[all …]
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/PerfJITEvents/
H A DPerfJITEventListener.cpp369 uint16_t e_machine; in FillMachine() member
399 hdr.ElfMach = info.e_machine; in FillMachine()
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h64 elf_half e_machine; ///< Target architecture. member
H A DELFHeader.cpp179 switch (e_machine) { in GetRelocationJumpSlotType()
H A DObjectFileELF.cpp322 if (header.e_machine == llvm::ELF::EM_MIPS) in subTypeFromElfHeader()
324 else if (header.e_machine == llvm::ELF::EM_PPC64) in subTypeFromElfHeader()
326 else if (header.e_machine == llvm::ELF::EM_RISCV) in subTypeFromElfHeader()
544 eArchTypeELF, header.e_machine, sub_type, header.e_ident[EI_OSABI]); in GetModuleSpecifications()
1346 arch_spec.SetArchitecture(eArchTypeELF, header.e_machine, sub_type, in GetSectionHeaderInfo()
3031 s->Printf("\ne_machine = 0x%4.4x\n", header.e_machine); in DumpELFHeader()
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Delf2yaml.cpp283 if (Obj.getHeader().e_machine != 0) in dump()
284 Y->Header.Machine = ELFYAML::ELF_EM(Obj.getHeader().e_machine); in dump()
585 if (Obj.getHeader().e_machine == ELF::EM_ARM && Type == ELF::SHT_ARM_EXIDX) in dumpSections()
588 if (Obj.getHeader().e_machine == ELF::EM_MIPS && in dumpSections()
798 Obj.getHeader().e_machine, S.Type, S.Name)) in dumpCommonSection()
1041 Obj.getHeader().e_machine, S->Type, S->Name); in dumpCallGraphProfileSection()
/llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/
H A DELF.h64 Elf32_Half e_machine; // Required architecture for this file (see EM_*) member
90 Elf64_Half e_machine; member
/llvm-project-15.0.7/llvm/unittests/Object/
H A DELFObjectFileTest.cpp37 Ehdr.e_machine = Machine; in makeElfData()
44 sys::swapByteOrder(Ehdr.e_machine); in makeElfData()
/llvm-project-15.0.7/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp66 ElfHeader.e_machine = Machine; in initELFHeader()
602 DestStub->Target.Arch = static_cast<IFSArch>(ElfFile.getHeader().e_machine); in buildStub()
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/
H A Dbinary-output-target.test93 ## In GNU objcopy, e_machine is EM_NONE unless -B is specifid.

12