libmach: add arm64 constants (import from sources)
This commit is contained in:
parent
18d1ef20b3
commit
64cb1dd5b4
2 changed files with 8 additions and 1 deletions
|
@ -30,9 +30,10 @@ struct Exec
|
||||||
#define U_MAGIC _MAGIC(0, 25) /* sparc64 */
|
#define U_MAGIC _MAGIC(0, 25) /* sparc64 */
|
||||||
#define S_MAGIC _MAGIC(HDR_MAGIC, 26) /* amd64 */
|
#define S_MAGIC _MAGIC(HDR_MAGIC, 26) /* amd64 */
|
||||||
#define T_MAGIC _MAGIC(HDR_MAGIC, 27) /* powerpc64 */
|
#define T_MAGIC _MAGIC(HDR_MAGIC, 27) /* powerpc64 */
|
||||||
|
#define R_MAGIC _MAGIC(HDR_MAGIC, 28) /* arm64 */
|
||||||
|
|
||||||
#define MIN_MAGIC 8
|
#define MIN_MAGIC 8
|
||||||
#define MAX_MAGIC 27 /* <= 90 */
|
#define MAX_MAGIC 28 /* <= 90 */
|
||||||
|
|
||||||
#define DYN_MAGIC 0x80000000 /* dlm */
|
#define DYN_MAGIC 0x80000000 /* dlm */
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
* powerpc,
|
* powerpc,
|
||||||
* powerpc64
|
* powerpc64
|
||||||
* alpha
|
* alpha
|
||||||
|
* arm64
|
||||||
*/
|
*/
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -36,6 +37,7 @@ enum
|
||||||
MSPARC64,
|
MSPARC64,
|
||||||
MAMD64,
|
MAMD64,
|
||||||
MPOWER64,
|
MPOWER64,
|
||||||
|
MARM64,
|
||||||
/* types of executables */
|
/* types of executables */
|
||||||
FNONE = 0, /* unidentified */
|
FNONE = 0, /* unidentified */
|
||||||
FMIPS, /* v.out */
|
FMIPS, /* v.out */
|
||||||
|
@ -65,6 +67,8 @@ enum
|
||||||
FAMD64B, /* 6.out bootable */
|
FAMD64B, /* 6.out bootable */
|
||||||
FPOWER64, /* 9.out */
|
FPOWER64, /* 9.out */
|
||||||
FPOWER64B, /* 9.out bootable */
|
FPOWER64B, /* 9.out bootable */
|
||||||
|
FARM64, /* arm64 */
|
||||||
|
FARM64B, /* arm64 bootable */
|
||||||
|
|
||||||
ANONE = 0, /* dissembler types */
|
ANONE = 0, /* dissembler types */
|
||||||
AMIPS,
|
AMIPS,
|
||||||
|
@ -82,6 +86,7 @@ enum
|
||||||
ASPARC64,
|
ASPARC64,
|
||||||
AAMD64,
|
AAMD64,
|
||||||
APOWER64,
|
APOWER64,
|
||||||
|
AARM64,
|
||||||
/* object file types */
|
/* object file types */
|
||||||
Obj68020 = 0, /* .2 */
|
Obj68020 = 0, /* .2 */
|
||||||
ObjSparc, /* .k */
|
ObjSparc, /* .k */
|
||||||
|
@ -99,6 +104,7 @@ enum
|
||||||
ObjAmd64, /* .6 */
|
ObjAmd64, /* .6 */
|
||||||
ObjSpim, /* .0 */
|
ObjSpim, /* .0 */
|
||||||
ObjPower64, /* .9 */
|
ObjPower64, /* .9 */
|
||||||
|
ObjArm64, /* .4? */
|
||||||
Maxobjtype,
|
Maxobjtype,
|
||||||
|
|
||||||
CNONE = 0, /* symbol table classes */
|
CNONE = 0, /* symbol table classes */
|
||||||
|
|
Loading…
Reference in a new issue