| ... | @@ -338,6 +338,7 @@ pub const Arch = enum { | ... | @@ -338,6 +338,7 @@ pub const Arch = enum { |
| 338 | IA_64, | 338 | IA_64, |
| 339 | x86_64, | 339 | x86_64, |
| 340 | AArch64, | 340 | AArch64, |
| | 341 | RiscV, |
| 341 | }; | 342 | }; |
| 342 | | 343 | |
| 343 | pub const SectionHeader = struct { | 344 | pub const SectionHeader = struct { |
| ... | @@ -428,6 +429,7 @@ pub const Elf = struct { | ... | @@ -428,6 +429,7 @@ pub const Elf = struct { |
| 428 | 0x32 => Arch.IA_64, | 429 | 0x32 => Arch.IA_64, |
| 429 | 0x3E => Arch.x86_64, | 430 | 0x3E => Arch.x86_64, |
| 430 | 0xb7 => Arch.AArch64, | 431 | 0xb7 => Arch.AArch64, |
| | 432 | 0xf3 => Arch.RiscV, |
| 431 | else => return error.InvalidFormat, | 433 | else => return error.InvalidFormat, |
| 432 | }; | 434 | }; |
| 433 | | 435 | |