elf_machdep.h revision 1.5
1/* $NetBSD: elf_machdep.h,v 1.5 2001/12/09 23:05:58 thorpej Exp $ */ 2 3#ifndef _BYTE_ORDER 4#error Define _BYTE_ORDER! 5#endif 6 7#if _BYTE_ORDER == _LITTLE_ENDIAN 8#define ELF32_MACHDEP_ENDIANNESS ELFDATA2LSB 9#else 10#define ELF32_MACHDEP_ENDIANNESS ELFDATA2MSB 11#endif 12#define ELF32_MACHDEP_ID_CASES \ 13 case EM_SH: \ 14 break; 15 16#define ELF64_MACHDEP_ENDIANNESS XXX /* break compilation */ 17#define ELF64_MACHDEP_ID_CASES \ 18 /* no 64-bit ELF machine types supported */ 19 20#define ELF32_MACHDEP_ID EM_SH 21 22#define ARCH_ELFSIZE 32 /* MD native binary size */ 23