1 1.3 thorpej /* $NetBSD: elf_machdep.h,v 1.3 1998/07/12 17:09:43 thorpej Exp $ */ 2 1.1 cgd 3 1.2 christos #define ELF32_MACHDEP_ENDIANNESS Elf_ed_2lsb 4 1.1 cgd #define ELF32_MACHDEP_ID_CASES \ 5 1.1 cgd case Elf_em_386: \ 6 1.1 cgd case Elf_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.3 thorpej 13 1.3 thorpej /* i386 relocations */ 14 1.3 thorpej #define R_386_NONE 0 15 1.3 thorpej #define R_386_32 1 16 1.3 thorpej #define R_386_PC32 2 17 1.3 thorpej #define R_386_GOT32 3 18 1.3 thorpej #define R_386_PLT32 4 19 1.3 thorpej #define R_386_COPY 5 20 1.3 thorpej #define R_386_GLOB_DAT 6 21 1.3 thorpej #define R_386_JUMP_SLOT 7 22 1.3 thorpej #define R_386_RELATIVE 8 23 1.3 thorpej #define R_386_GOTOFF 9 24 1.3 thorpej #define R_386_GOTPC 10 25 1.3 thorpej /* The following relocations are GNU extensions. */ 26 1.3 thorpej #define R_386_16 20 27 1.3 thorpej #define R_386_PC16 21 28 1.3 thorpej #define R_386_8 22 29 1.3 thorpej #define R_386_PC8 23 30 1.3 thorpej 31 1.3 thorpej #define R_TYPE(name) __CONCAT(R_386_,name) 32