File tree Expand file tree Collapse file tree 5 files changed +19
-4
lines changed
include/llvm/BinaryFormat Expand file tree Collapse file tree 5 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ enum {
303303 EM_BA2 = 202 , // Beyond BA2 CPU architecture
304304 EM_XCORE = 203 , // XMOS xCORE processor family
305305 EM_MCHP_PIC = 204 , // Microchip 8-bit PIC(r) family
306- EM_INTEL205 = 205 , // Reserved by Intel
306+ EM_INTELGT = 205 , // Intel Graphics Technology
307307 EM_INTEL206 = 206 , // Reserved by Intel
308308 EM_INTEL207 = 207 , // Reserved by Intel
309309 EM_INTEL208 = 208 , // Reserved by Intel
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ uint16_t ELF::convertArchNameToEMachine(StringRef Arch) {
175175 .Case (" ba2" , EM_BA2)
176176 .Case (" xcore" , EM_XCORE)
177177 .Case (" mchp_pic" , EM_MCHP_PIC)
178- .Case (" intel205 " , EM_INTEL205 )
178+ .Case (" intelgt " , EM_INTELGT )
179179 .Case (" intel206" , EM_INTEL206)
180180 .Case (" intel207" , EM_INTEL207)
181181 .Case (" intel208" , EM_INTEL208)
@@ -584,8 +584,8 @@ StringRef ELF::convertEMachineToArchName(uint16_t EMachine) {
584584 return " xcore" ;
585585 case EM_MCHP_PIC:
586586 return " mchp_pic" ;
587- case EM_INTEL205 :
588- return " intel205 " ;
587+ case EM_INTELGT :
588+ return " intelgt " ;
589589 case EM_INTEL206:
590590 return " intel206" ;
591591 case EM_INTEL207:
Original file line number Diff line number Diff line change @@ -359,6 +359,7 @@ void ScalarEnumerationTraits<ELFYAML::ELF_EM>::enumeration(
359359 ECase (EM_VE);
360360 ECase (EM_CSKY);
361361 ECase (EM_LOONGARCH);
362+ ECase (EM_INTELGT);
362363#undef ECase
363364 IO.enumFallback <Hex16>(Value);
364365}
Original file line number Diff line number Diff line change 1+ # RUN: yaml2obj %s -o %t1
2+ # RUN: llvm-readelf %t1 --file-headers | FileCheck %s
3+
4+ # Test that the recently-renamed INTELGT machine type works
5+
6+ # CHECK: Machine: Intel Graphics Technology
7+
8+ --- !ELF
9+ FileHeader :
10+ Class : ELFCLASS64
11+ Data : ELFDATA2MSB
12+ Type : ET_REL
13+ Machine : EM_INTELGT
Original file line number Diff line number Diff line change @@ -1305,6 +1305,7 @@ const EnumEntry<unsigned> ElfMachineType[] = {
13051305 ENUM_ENT (EM_BPF, " EM_BPF" ),
13061306 ENUM_ENT (EM_VE, " NEC SX-Aurora Vector Engine" ),
13071307 ENUM_ENT (EM_LOONGARCH, " LoongArch" ),
1308+ ENUM_ENT (EM_INTELGT, " Intel Graphics Technology" ),
13081309};
13091310
13101311const EnumEntry<unsigned > ElfSymbolBindings[] = {
You can’t perform that action at this time.
0 commit comments