zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ba711f1115b76d85b13fc64636c4a4af8405cc1e (tree)
parent 8b45921664c8f679c8154b45add84f84e3ec8128
Author: LemonBoy <thatlemon@gmail.com>
Date:   Sun, 13 Oct 2019 12:12:33 +0200

Add ELF architecture constant for RISC-V

Diffstat:
Mlib/std/elf.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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, };