summaryrefslogtreecommitdiff
path: root/utils/include/a.out.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/a.out.h
parented97654bd7a11d480b44505c8300d06b42e5fefe (diff)
Add riscv and riscv64 support to libmach
Diffstat (limited to 'utils/include/a.out.h')
-rw-r--r--utils/include/a.out.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/include/a.out.h b/utils/include/a.out.h
index 86c7d061..915cdaae 100644
--- a/utils/include/a.out.h
+++ b/utils/include/a.out.h
@@ -31,9 +31,11 @@ struct Exec
#define S_MAGIC _MAGIC(HDR_MAGIC, 26) /* amd64 */
#define T_MAGIC _MAGIC(HDR_MAGIC, 27) /* powerpc64 */
#define R_MAGIC _MAGIC(HDR_MAGIC, 28) /* arm64 */
+#define Z_MAGIC _MAGIC(0, 29) /* riscv */
+#define Y_MAGIC _MAGIC(0, 30) /* riscv64 */
#define MIN_MAGIC 8
-#define MAX_MAGIC 28 /* <= 90 */
+#define MAX_MAGIC 30 /* <= 90 */
#define DYN_MAGIC 0x80000000 /* dlm */