Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/include/llvm/BinaryFormat/ELF.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ enum {
EM_BA2 = 202, // Beyond BA2 CPU architecture
EM_XCORE = 203, // XMOS xCORE processor family
EM_MCHP_PIC = 204, // Microchip 8-bit PIC(r) family
EM_INTEL205 = 205, // Reserved by Intel
EM_INTELGT = 205, // Intel Graphics Technology
EM_INTEL206 = 206, // Reserved by Intel
EM_INTEL207 = 207, // Reserved by Intel
EM_INTEL208 = 208, // Reserved by Intel
Expand Down
6 changes: 3 additions & 3 deletions llvm/lib/BinaryFormat/ELF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ uint16_t ELF::convertArchNameToEMachine(StringRef Arch) {
.Case("ba2", EM_BA2)
.Case("xcore", EM_XCORE)
.Case("mchp_pic", EM_MCHP_PIC)
.Case("intel205", EM_INTEL205)
.Case("intelgt", EM_INTELGT)
.Case("intel206", EM_INTEL206)
.Case("intel207", EM_INTEL207)
.Case("intel208", EM_INTEL208)
Expand Down Expand Up @@ -584,8 +584,8 @@ StringRef ELF::convertEMachineToArchName(uint16_t EMachine) {
return "xcore";
case EM_MCHP_PIC:
return "mchp_pic";
case EM_INTEL205:
return "intel205";
case EM_INTELGT:
return "intelgt";
case EM_INTEL206:
return "intel206";
case EM_INTEL207:
Expand Down
1 change: 1 addition & 0 deletions llvm/lib/ObjectYAML/ELFYAML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ void ScalarEnumerationTraits<ELFYAML::ELF_EM>::enumeration(
ECase(EM_VE);
ECase(EM_CSKY);
ECase(EM_LOONGARCH);
ECase(EM_INTELGT);
#undef ECase
IO.enumFallback<Hex16>(Value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@
# RUN: yaml2obj %s -o %t.ve.o -D MACHINE=EM_VE
# RUN: llvm-readelf --file-headers %t.ve.o | FileCheck %s -DMACHINE="NEC SX-Aurora Vector Engine"

# RUN: yaml2obj %s -o %t.igt.o -D MACHINE=EM_INTELGT
# RUN: llvm-readelf --file-headers %t.igt.o | FileCheck %s -DMACHINE="Intel Graphics Technology"

# CHECK: Machine: [[MACHINE]]

--- !ELF
Expand Down
1 change: 1 addition & 0 deletions llvm/tools/llvm-readobj/ELFDumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,7 @@ const EnumEntry<unsigned> ElfMachineType[] = {
ENUM_ENT(EM_BPF, "EM_BPF"),
ENUM_ENT(EM_VE, "NEC SX-Aurora Vector Engine"),
ENUM_ENT(EM_LOONGARCH, "LoongArch"),
ENUM_ENT(EM_INTELGT, "Intel Graphics Technology"),
};

const EnumEntry<unsigned> ElfSymbolBindings[] = {
Expand Down
Loading