1 1.8 minoura /* $NetBSD: elf_machdep.h,v 1.8 2000/04/02 15:35:49 minoura Exp $ */ 2 1.1 cgd 3 1.7 kleink #define ELF32_MACHDEP_ENDIANNESS ELFDATA2LSB 4 1.1 cgd #define ELF32_MACHDEP_ID_CASES \ 5 1.7 kleink case EM_386: \ 6 1.7 kleink case EM_486: \ 7 1.1 cgd break; 8 1.1 cgd 9 1.2 christos #define ELF64_MACHDEP_ENDIANNESS XXX /* break compilation */ 10 1.1 cgd #define ELF64_MACHDEP_ID_CASES \ 11 1.1 cgd /* no 64-bit ELF machine types supported */ 12 1.8 minoura 13 1.8 minoura #define ARCH_ELFSIZE 32 /* MD native binary size */ 14 1.3 thorpej 15 1.3 thorpej /* i386 relocations */ 16 1.3 thorpej #define R_386_NONE 0 17 1.3 thorpej #define R_386_32 1 18 1.3 thorpej #define R_386_PC32 2 19 1.3 thorpej #define R_386_GOT32 3 20 1.3 thorpej #define R_386_PLT32 4 21 1.3 thorpej #define R_386_COPY 5 22 1.3 thorpej #define R_386_GLOB_DAT 6 23 1.5 christos #define R_386_JMP_SLOT 7 24 1.3 thorpej #define R_386_RELATIVE 8 25 1.3 thorpej #define R_386_GOTOFF 9 26 1.3 thorpej #define R_386_GOTPC 10 27 1.3 thorpej /* The following relocations are GNU extensions. */ 28 1.3 thorpej #define R_386_16 20 29 1.3 thorpej #define R_386_PC16 21 30 1.3 thorpej #define R_386_8 22 31 1.3 thorpej #define R_386_PC8 23 32 1.3 thorpej 33 1.3 thorpej #define R_TYPE(name) __CONCAT(R_386_,name) 34