a.out(6): sync definitions

This commit is contained in:
mischief 2014-07-17 23:22:48 -07:00
parent 4a7d29dd5f
commit b603991593

View file

@ -24,19 +24,28 @@ typedef struct Exec {
long spsz; /* size of pc/sp offset table */ long spsz; /* size of pc/sp offset table */
long pcsz; /* size of pc/line number table */ long pcsz; /* size of pc/line number table */
} Exec; } Exec;
#define _MAGIC(b) ((((4*b)+0)*b)+7)
#define A_MAGIC _MAGIC(8) /* 68020 */ #define HDR_MAGIC 0x00008000
#define I_MAGIC _MAGIC(11) /* intel 386 */
#define J_MAGIC _MAGIC(12) /* intel 960 */ #define _MAGIC(f, b) ((f)|((((4*(b))+0)*(b))+7))
#define K_MAGIC _MAGIC(13) /* sparc */ #define A_MAGIC _MAGIC(0, 8) /* 68020 */
#define V_MAGIC _MAGIC(16) /* mips 3000 */ #define I_MAGIC _MAGIC(0, 11) /* intel 386 */
#define X_MAGIC _MAGIC(17) /* att dsp 3210 */ #define J_MAGIC _MAGIC(0, 12) /* intel 960 (retired) */
#define M_MAGIC _MAGIC(18) /* mips 4000 */ #define K_MAGIC _MAGIC(0, 13) /* sparc */
#define D_MAGIC _MAGIC(19) /* amd 29000 */ #define V_MAGIC _MAGIC(0, 16) /* mips 3000 BE */
#define E_MAGIC _MAGIC(20) /* arm 7-something */ #define X_MAGIC _MAGIC(0, 17) /* att dsp 3210 (retired) */
#define Q_MAGIC _MAGIC(21) /* powerpc */ #define M_MAGIC _MAGIC(0, 18) /* mips 4000 BE */
#define N_MAGIC _MAGIC(22) /* mips 4000 LE */ #define D_MAGIC _MAGIC(0, 19) /* amd 29000 (retired) */
#define L_MAGIC _MAGIC(23) /* dec alpha */ #define E_MAGIC _MAGIC(0, 20) /* arm */
#define Q_MAGIC _MAGIC(0, 21) /* powerpc */
#define N_MAGIC _MAGIC(0, 22) /* mips 4000 LE */
#define L_MAGIC _MAGIC(0, 23) /* dec alpha */
#define P_MAGIC _MAGIC(0, 24) /* mips 3000 LE */
#define U_MAGIC _MAGIC(0, 25) /* sparc64 */
#define S_MAGIC _MAGIC(HDR_MAGIC, 26) /* amd64 */
#define T_MAGIC _MAGIC(HDR_MAGIC, 27) /* powerpc64 */
#define R_MAGIC _MAGIC(HDR_MAGIC, 28) /* arm64 */
.EE .EE
.DT .DT
.PP .PP