| ... | @@ -1002,6 +1002,10 @@ pub const MachineType = enum(u16) { | ... | @@ -1002,6 +1002,10 @@ pub const MachineType = enum(u16) { |
| 1002 | I386 = 0x14c, | 1002 | I386 = 0x14c, |
| 1003 | /// Intel Itanium processor family | 1003 | /// Intel Itanium processor family |
| 1004 | IA64 = 0x200, | 1004 | IA64 = 0x200, |
| | 1005 | /// LoongArch32 |
| | 1006 | LOONGARCH32 = 0x6232, |
| | 1007 | /// LoongArch64 |
| | 1008 | LOONGARCH64 = 0x6264, |
| 1005 | /// Mitsubishi M32R little endian | 1009 | /// Mitsubishi M32R little endian |
| 1006 | M32R = 0x9041, | 1010 | M32R = 0x9041, |
| 1007 | /// MIPS16 | 1011 | /// MIPS16 |
| ... | @@ -1047,6 +1051,8 @@ pub const MachineType = enum(u16) { | ... | @@ -1047,6 +1051,8 @@ pub const MachineType = enum(u16) { |
| 1047 | .aarch64 => .ARM64, | 1051 | .aarch64 => .ARM64, |
| 1048 | .riscv64 => .RISCV64, | 1052 | .riscv64 => .RISCV64, |
| 1049 | .x86_64 => .X64, | 1053 | .x86_64 => .X64, |
| | 1054 | .loongarch32 => .LOONGARCH32, |
| | 1055 | .loongarch64 => .LOONGARCH64, |
| 1050 | // there's cases we don't (yet) handle | 1056 | // there's cases we don't (yet) handle |
| 1051 | else => unreachable, | 1057 | else => unreachable, |
| 1052 | }; | 1058 | }; |
| ... | @@ -1062,6 +1068,8 @@ pub const MachineType = enum(u16) { | ... | @@ -1062,6 +1068,8 @@ pub const MachineType = enum(u16) { |
| 1062 | .ARM64 => .aarch64, | 1068 | .ARM64 => .aarch64, |
| 1063 | .RISCV64 => .riscv64, | 1069 | .RISCV64 => .riscv64, |
| 1064 | .X64 => .x86_64, | 1070 | .X64 => .x86_64, |
| | 1071 | .LOONGARCH32 => .loongarch32, |
| | 1072 | .LOONGARCH64 => .loongarch64, |
| 1065 | // there's cases we don't (yet) handle | 1073 | // there's cases we don't (yet) handle |
| 1066 | else => null, | 1074 | else => null, |
| 1067 | }; | 1075 | }; |