1 /* $OpenBSD: exec.h,v 1.5 2017/02/08 05:09:26 guenther Exp $ */ 2 /* $NetBSD: elf_machdep.h,v 1.8 2002/04/28 17:10:34 uch Exp $ */ 3 4 #define __LDPGSZ 4096 5 6 #define ARCH_ELFSIZE 32 /* MD native binary size */ 7 #define ELF_TARG_CLASS ELFCLASS32 8 #ifdef __LITTLE_ENDIAN__ 9 #define ELF_TARG_DATA ELFDATA2LSB 10 #else 11 #define ELF_TARG_DATA ELFDATA2MSB 12 #endif 13 #define ELF_TARG_MACH EM_SH 14 15 /* 16 * SuperH ELF header flags. 17 */ 18 #define EF_SH_MACH_MASK 0x1f 19 20 #define EF_SH_UNKNOWN 0x00 21 #define EF_SH_SH1 0x01 22 #define EF_SH_SH2 0x02 23 #define EF_SH_SH3 0x03 24 #define EF_SH_DSP 0x04 25 #define EF_SH_SH3_DSP 0x05 26 #define EF_SH_SH3E 0x08 27 #define EF_SH_SH4 0x09 28 29 #define EF_SH_HAS_DSP(x) ((x) & EF_SH_DSP) 30 #define EF_SH_HAS_FP(x) ((x) & EF_SH_SH3E) 31