2001-03-29 07:23:33 +04:00
|
|
|
/* $NetBSD: elf_machdep.h,v 1.4 2001/03/29 03:23:33 marcus Exp $ */
|
1999-09-13 14:30:21 +04:00
|
|
|
|
2001-03-29 07:23:33 +04:00
|
|
|
#ifndef _BYTE_ORDER
|
|
|
|
#error Define _BYTE_ORDER!
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if _BYTE_ORDER == _LITTLE_ENDIAN
|
|
|
|
#define ELF32_MACHDEP_ENDIANNESS ELFDATA2LSB
|
|
|
|
#else
|
1999-10-25 17:55:06 +04:00
|
|
|
#define ELF32_MACHDEP_ENDIANNESS ELFDATA2MSB
|
2001-03-29 07:23:33 +04:00
|
|
|
#endif
|
1999-09-13 14:30:21 +04:00
|
|
|
#define ELF32_MACHDEP_ID_CASES \
|
1999-10-25 17:55:06 +04:00
|
|
|
case EM_SH: \
|
1999-09-13 14:30:21 +04:00
|
|
|
break;
|
|
|
|
|
|
|
|
#define ELF64_MACHDEP_ENDIANNESS XXX /* break compilation */
|
|
|
|
#define ELF64_MACHDEP_ID_CASES \
|
|
|
|
/* no 64-bit ELF machine types supported */
|
2000-04-02 19:35:47 +04:00
|
|
|
|
|
|
|
#define ARCH_ELFSIZE 32 /* MD native binary size */
|