aboutsummaryrefslogtreecommitdiff
path: root/lib/std/elf.zig
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2019-10-13 12:12:33 +0200
committerLemonBoy <thatlemon@gmail.com>2019-10-13 12:12:33 +0200
commitba711f1115b76d85b13fc64636c4a4af8405cc1e (patch)
tree848dc40c3853cbb4742c3ef7d3211324669154ca /lib/std/elf.zig
parent8b45921664c8f679c8154b45add84f84e3ec8128 (diff)
downloadzig-ba711f1115b76d85b13fc64636c4a4af8405cc1e.tar.gz
zig-ba711f1115b76d85b13fc64636c4a4af8405cc1e.zip
Add ELF architecture constant for RISC-V
Diffstat (limited to 'lib/std/elf.zig')
-rw-r--r--lib/std/elf.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/elf.zig b/lib/std/elf.zig
index 37635895fd..b3aea3e5c6 100644
--- a/lib/std/elf.zig
+++ b/lib/std/elf.zig
@@ -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,
};