elf_machdep.h revision 1.6
1/* $NetBSD: elf_machdep.h,v 1.6 2002/01/29 01:35:36 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 24#define R_SH_NONE 0 25#define R_SH_DIR32 1 26#define R_SH_REL32 2 27#define R_SH_DIR8WPN 3 28#define R_SH_IND12W 4 29#define R_SH_DIR8WPL 5 30#define R_SH_DIR8WPZ 6 31#define R_SH_DIR8BP 7 32#define R_SH_DIR8W 8 33#define R_SH_DIR8L 9 34#define R_SH_SWITCH16 25 35#define R_SH_SWITCH32 26 36#define R_SH_USES 27 37#define R_SH_COUNT 28 38#define R_SH_ALIGN 29 39#define R_SH_CODE 30 40#define R_SH_DATA 31 41#define R_SH_LABEL 32 42#define R_SH_SWITCH8 33 43#define R_SH_GNU_VTINHERIT 34 44#define R_SH_GNU_VTENTRY 35 45#define R_SH_LOOP_START 36 46#define R_SH_LOOP_END 37 47#define R_SH_GOT32 160 48#define R_SH_PLT32 161 49#define R_SH_COPY 162 50#define R_SH_GLOB_DAT 163 51#define R_SH_JMP_SLOT 164 52#define R_SH_RELATIVE 165 53#define R_SH_GOTOFF 166 54#define R_SH_GOTPC 167 55 56#define R_TYPE(name) __CONCAT(R_SH_,name) 57