Skip to content

Commit

Permalink
Merge pull request #57 from diodesign/patch-1
Browse files Browse the repository at this point in the history
Include RISC-V in machine enum
  • Loading branch information
nrc committed Jan 4, 2021
2 parents 5778f73 + c66b71d commit df5828e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ impl Machine_ {
0x32 => Machine::Ia64,
0x3E => Machine::X86_64,
0xB7 => Machine::AArch64,
0xF3 => Machine::RISC_V,
0xF7 => Machine::BPF,
other => Machine::Other(other),
}
Expand All @@ -421,6 +422,7 @@ pub enum Machine {
Ia64,
X86_64,
AArch64,
RISC_V,
BPF,
Other(u16), // FIXME there are many, many more of these
}
Expand Down

0 comments on commit df5828e

Please sign in to comment.