summaryrefslogtreecommitdiff
path: root/utils/include/mach.h
diff options
context:
space:
mode:
authorRichard Miller <miller.research@gmail.com>2020-11-09 11:33:44 +0000
committerRichard Miller <miller.research@gmail.com>2020-11-09 11:33:44 +0000
commit2a571cc0ece4073eb56d5ccfc3e061a09a353e13 (patch)
tree7daccd0dac9144a55a00570e3fb11af7f0862659 /utils/include/mach.h
parented97654bd7a11d480b44505c8300d06b42e5fefe (diff)
Add riscv and riscv64 support to libmach
Diffstat (limited to 'utils/include/mach.h')
-rw-r--r--utils/include/mach.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/include/mach.h b/utils/include/mach.h
index 1c8d7a83..25e89279 100644
--- a/utils/include/mach.h
+++ b/utils/include/mach.h
@@ -16,6 +16,8 @@
* powerpc,
* powerpc64
* arm64
+ * riscv
+ * riscv64
*/
enum
{
@@ -36,6 +38,8 @@ enum
MAMD64,
MPOWER64,
MARM64,
+ MRISCV,
+ MRISCV64,
/* types of executables */
FNONE = 0, /* unidentified */
FMIPS, /* v.out */
@@ -67,6 +71,10 @@ enum
FPOWER64B, /* 9.out bootable */
FARM64, /* arm64 */
FARM64B, /* arm64 bootable */
+ FRISCV, /* riscv */
+ FRISCVB, /* riscv bootable */
+ FRISCV64, /* riscv64 */
+ FRISCV64B, /* riscv64 bootable */
ANONE = 0, /* dissembler types */
AMIPS,
@@ -85,6 +93,8 @@ enum
AAMD64,
APOWER64,
AARM64,
+ ARISCV,
+ ARISCV64,
/* object file types */
Obj68020 = 0, /* .2 */
ObjSparc, /* .k */
@@ -103,6 +113,8 @@ enum
ObjSpim, /* .0 */
ObjPower64, /* .9 */
ObjArm64, /* .4? */
+ ObjRiscv, /* .i */
+ ObjRiscv64, /* .j */
Maxobjtype,
CNONE = 0, /* symbol table classes */