1 1.5.12.2 nathanw /* $NetBSD: elf_machdep.h,v 1.5.12.2 2002/02/28 04:10:34 nathanw Exp $ */ 2 1.1 thorpej 3 1.3 kleink #define ELF32_MACHDEP_ENDIANNESS ELFDATA2MSB 4 1.1 thorpej #define ELF32_MACHDEP_ID_CASES \ 5 1.4 frueauf case EM_68K: \ 6 1.1 thorpej break; 7 1.1 thorpej 8 1.1 thorpej #define ELF64_MACHDEP_ENDIANNESS XXX /* break compilation */ 9 1.1 thorpej #define ELF64_MACHDEP_ID_CASES \ 10 1.1 thorpej /* no 64-bit ELF machine types supported */ 11 1.5.12.1 nathanw 12 1.5.12.1 nathanw #define ELF32_MACHDEP_ID EM_68K 13 1.5.12.2 nathanw 14 1.5.12.2 nathanw /* 15 1.5.12.2 nathanw * Machine-dependent ELF flags. These are defined by the GNU tools. 16 1.5.12.2 nathanw */ 17 1.5.12.2 nathanw #define EF_CPU32 0x00810000 18 1.5.12.2 nathanw #define EF_M68000 0x01000000 19 1.5 minoura 20 1.5 minoura #define ARCH_ELFSIZE 32 /* MD native binary size */ 21 1.2 thorpej 22 1.2 thorpej /* m68k relocation types */ 23 1.2 thorpej #define R_68K_NONE 0 24 1.2 thorpej #define R_68K_32 1 25 1.2 thorpej #define R_68K_16 2 26 1.2 thorpej #define R_68K_8 3 27 1.2 thorpej #define R_68K_PC32 4 28 1.2 thorpej #define R_68K_PC16 5 29 1.2 thorpej #define R_68K_PC8 6 30 1.2 thorpej #define R_68K_GOT32 7 31 1.2 thorpej #define R_68K_GOT16 8 32 1.2 thorpej #define R_68K_GOT8 9 33 1.2 thorpej #define R_68K_GOT32O 10 34 1.2 thorpej #define R_68K_GOT16O 11 35 1.2 thorpej #define R_68K_GOT8O 12 36 1.2 thorpej #define R_68K_PLT32 13 37 1.2 thorpej #define R_68K_PLT16 14 38 1.2 thorpej #define R_68K_PLT8 15 39 1.2 thorpej #define R_68K_PLT32O 16 40 1.2 thorpej #define R_68K_PLT16O 17 41 1.2 thorpej #define R_68K_PLT8O 18 42 1.2 thorpej #define R_68K_COPY 19 43 1.2 thorpej #define R_68K_GLOB_DAT 20 44 1.2 thorpej #define R_68K_JMP_SLOT 21 45 1.2 thorpej #define R_68K_RELATIVE 22 46 1.2 thorpej 47 1.2 thorpej #define R_TYPE(name) __CONCAT(R_68K_,name) 48