1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * Brought in from Linux 4.1, removed things not useful to U-Boot. 4 * The definitions perhaps came from the GNU Library which is GPL. 5 */ 6 7 #ifndef _ASM_X86_ELF_H 8 #define _ASM_X86_ELF_H 9 10 /* ELF register definitions */ 11 #define R_386_NONE 0 12 #define R_386_32 1 13 #define R_386_PC32 2 14 #define R_386_GOT32 3 15 #define R_386_PLT32 4 16 #define R_386_COPY 5 17 #define R_386_GLOB_DAT 6 18 #define R_386_JMP_SLOT 7 19 #define R_386_RELATIVE 8 20 #define R_386_GOTOFF 9 21 #define R_386_GOTPC 10 22 #define R_386_NUM 11 23 24 /* x86-64 relocation types */ 25 #define R_X86_64_NONE 0 /* No reloc */ 26 #define R_X86_64_64 1 /* Direct 64 bit */ 27 #define R_X86_64_PC32 2 /* PC relative 32 bit signed */ 28 #define R_X86_64_GOT32 3 /* 32 bit GOT entry */ 29 #define R_X86_64_PLT32 4 /* 32 bit PLT address */ 30 #define R_X86_64_COPY 5 /* Copy symbol at runtime */ 31 #define R_X86_64_GLOB_DAT 6 /* Create GOT entry */ 32 #define R_X86_64_JUMP_SLOT 7 /* Create PLT entry */ 33 #define R_X86_64_RELATIVE 8 /* Adjust by program base */ 34 /* 32 bit signed pc relative offset to GOT */ 35 #define R_X86_64_GOTPCREL 9 36 #define R_X86_64_32 10 /* Direct 32 bit zero extended */ 37 #define R_X86_64_32S 11 /* Direct 32 bit sign extended */ 38 #define R_X86_64_16 12 /* Direct 16 bit zero extended */ 39 #define R_X86_64_PC16 13 /* 16 bit sign extended pc relative */ 40 #define R_X86_64_8 14 /* Direct 8 bit sign extended */ 41 #define R_X86_64_PC8 15 /* 8 bit sign extended pc relative */ 42 43 #define R_X86_64_NUM 16 44 45 #endif 46