1 /* $NetBSD: elf_machdep.h,v 1.5 2016/02/02 20:13:59 christos Exp $ */ 2 3 #ifndef _X86_64_ELF_MACHDEP_H_ 4 #define _X86_64_ELF_MACHDEP_H_ 5 6 /* x86-64 relocations */ 7 8 #define R_X86_64_NONE 0 9 #define R_X86_64_64 1 10 #define R_X86_64_PC32 2 11 #define R_X86_64_GOT32 3 12 #define R_X86_64_PLT32 4 13 #define R_X86_64_COPY 5 14 #define R_X86_64_GLOB_DAT 6 15 #define R_X86_64_JUMP_SLOT 7 16 #define R_X86_64_RELATIVE 8 17 #define R_X86_64_GOTPCREL 9 18 #define R_X86_64_32 10 19 #define R_X86_64_32S 11 20 #define R_X86_64_16 12 21 #define R_X86_64_PC16 13 22 #define R_X86_64_8 14 23 #define R_X86_64_PC8 15 24 25 /* TLS relocations */ 26 #define R_X86_64_DTPMOD64 16 27 #define R_X86_64_DTPOFF64 17 28 #define R_X86_64_TPOFF64 18 29 #define R_X86_64_TLSGD 19 30 #define R_X86_64_TLSLD 20 31 #define R_X86_64_DTPOFF32 21 32 #define R_X86_64_GOTTPOFF 22 33 #define R_X86_64_TPOFF32 23 34 35 #define R_X86_64_PC64 24 36 #define R_X86_64_GOTOFF64 25 37 #define R_X86_64_GOTPC32 26 38 #define R_X86_64_GOT64 27 39 #define R_X86_64_GOTPCREL64 28 40 #define R_X86_64_GOTPC64 29 41 #define R_X86_64_GOTPLT64 30 42 #define R_X86_64_PLTOFF64 31 43 #define R_X86_64_SIZE32 32 44 #define R_X86_64_SIZE64 33 45 #define R_X86_64_GOTPC32_TLSDESC 34 46 #define R_X86_64_TLSDESC_CALL 35 47 #define R_X86_64_TLSDESC 36 48 #define R_X86_64_IRELATIVE 37 49 #define R_X86_64_RELATIVE64 38 50 #define R_X86_64_PC32_BND 39 51 #define R_X86_64_PLT32_BND 40 52 #define R_X86_64_GOTPCRELX 41 53 #define R_X86_64_REX_GOTPCRELX 42 54 55 #endif 56