mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
Add ELF architecture constant for RISC-V
This commit is contained in:
parent
8b45921664
commit
ba711f1115
@ -338,6 +338,7 @@ pub const Arch = enum {
|
||||
IA_64,
|
||||
x86_64,
|
||||
AArch64,
|
||||
RiscV,
|
||||
};
|
||||
|
||||
pub const SectionHeader = struct {
|
||||
@ -428,6 +429,7 @@ pub const Elf = struct {
|
||||
0x32 => Arch.IA_64,
|
||||
0x3E => Arch.x86_64,
|
||||
0xb7 => Arch.AArch64,
|
||||
0xf3 => Arch.RiscV,
|
||||
else => return error.InvalidFormat,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user