198b9484cSchristos /* ix86 ELF support for BFD. 2*02f41505Schristos Copyright (C) 1998-2024 Free Software Foundation, Inc. 398b9484cSchristos 498b9484cSchristos This file is part of BFD, the Binary File Descriptor library. 598b9484cSchristos 698b9484cSchristos This program is free software; you can redistribute it and/or modify 798b9484cSchristos it under the terms of the GNU General Public License as published by 898b9484cSchristos the Free Software Foundation; either version 3 of the License, or 998b9484cSchristos (at your option) any later version. 1098b9484cSchristos 1198b9484cSchristos This program is distributed in the hope that it will be useful, 1298b9484cSchristos but WITHOUT ANY WARRANTY; without even the implied warranty of 1398b9484cSchristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1498b9484cSchristos GNU General Public License for more details. 1598b9484cSchristos 1698b9484cSchristos You should have received a copy of the GNU General Public License 1798b9484cSchristos along with this program; if not, write to the Free Software Foundation, 1898b9484cSchristos Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 1998b9484cSchristos 2098b9484cSchristos #ifndef _ELF_I386_H 2198b9484cSchristos #define _ELF_I386_H 2298b9484cSchristos 2398b9484cSchristos #include "elf/reloc-macros.h" 2498b9484cSchristos 2598b9484cSchristos START_RELOC_NUMBERS (elf_i386_reloc_type) 2698b9484cSchristos RELOC_NUMBER (R_386_NONE, 0) /* No reloc */ 2798b9484cSchristos RELOC_NUMBER (R_386_32, 1) /* Direct 32 bit */ 2898b9484cSchristos RELOC_NUMBER (R_386_PC32, 2) /* PC relative 32 bit */ 2998b9484cSchristos RELOC_NUMBER (R_386_GOT32, 3) /* 32 bit GOT entry */ 3098b9484cSchristos RELOC_NUMBER (R_386_PLT32, 4) /* 32 bit PLT address */ 3198b9484cSchristos RELOC_NUMBER (R_386_COPY, 5) /* Copy symbol at runtime */ 3298b9484cSchristos RELOC_NUMBER (R_386_GLOB_DAT, 6) /* Create GOT entry */ 3398b9484cSchristos RELOC_NUMBER (R_386_JUMP_SLOT, 7) /* Create PLT entry */ 3498b9484cSchristos RELOC_NUMBER (R_386_RELATIVE, 8) /* Adjust by program base */ 3598b9484cSchristos RELOC_NUMBER (R_386_GOTOFF, 9) /* 32 bit offset to GOT */ 3698b9484cSchristos RELOC_NUMBER (R_386_GOTPC, 10) /* 32 bit PC relative offset to GOT */ 3798b9484cSchristos RELOC_NUMBER (R_386_32PLT, 11) /* Used by Sun */ 3898b9484cSchristos FAKE_RELOC (FIRST_INVALID_RELOC, 12) 3998b9484cSchristos FAKE_RELOC (LAST_INVALID_RELOC, 13) 4098b9484cSchristos RELOC_NUMBER (R_386_TLS_TPOFF,14) 4198b9484cSchristos RELOC_NUMBER (R_386_TLS_IE, 15) 4298b9484cSchristos RELOC_NUMBER (R_386_TLS_GOTIE,16) 4398b9484cSchristos RELOC_NUMBER (R_386_TLS_LE, 17) 4498b9484cSchristos RELOC_NUMBER (R_386_TLS_GD, 18) 4598b9484cSchristos RELOC_NUMBER (R_386_TLS_LDM, 19) 4698b9484cSchristos RELOC_NUMBER (R_386_16, 20) 4798b9484cSchristos RELOC_NUMBER (R_386_PC16, 21) 4898b9484cSchristos RELOC_NUMBER (R_386_8, 22) 4998b9484cSchristos RELOC_NUMBER (R_386_PC8, 23) 5098b9484cSchristos RELOC_NUMBER (R_386_TLS_GD_32, 24) 5198b9484cSchristos RELOC_NUMBER (R_386_TLS_GD_PUSH, 25) 5298b9484cSchristos RELOC_NUMBER (R_386_TLS_GD_CALL, 26) 5398b9484cSchristos RELOC_NUMBER (R_386_TLS_GD_POP, 27) 5498b9484cSchristos RELOC_NUMBER (R_386_TLS_LDM_32, 28) 5598b9484cSchristos RELOC_NUMBER (R_386_TLS_LDM_PUSH, 29) 5698b9484cSchristos RELOC_NUMBER (R_386_TLS_LDM_CALL, 30) 5798b9484cSchristos RELOC_NUMBER (R_386_TLS_LDM_POP, 31) 5898b9484cSchristos RELOC_NUMBER (R_386_TLS_LDO_32, 32) 5998b9484cSchristos RELOC_NUMBER (R_386_TLS_IE_32, 33) 6098b9484cSchristos RELOC_NUMBER (R_386_TLS_LE_32, 34) 6198b9484cSchristos RELOC_NUMBER (R_386_TLS_DTPMOD32, 35) 6298b9484cSchristos RELOC_NUMBER (R_386_TLS_DTPOFF32, 36) 6398b9484cSchristos RELOC_NUMBER (R_386_TLS_TPOFF32, 37) 64a2e2270fSchristos RELOC_NUMBER (R_386_SIZE32, 38) /* 32-bit symbol size */ 6598b9484cSchristos RELOC_NUMBER (R_386_TLS_GOTDESC, 39) 6698b9484cSchristos RELOC_NUMBER (R_386_TLS_DESC_CALL,40) 6798b9484cSchristos RELOC_NUMBER (R_386_TLS_DESC, 41) 6898b9484cSchristos RELOC_NUMBER (R_386_IRELATIVE, 42) /* Adjust indirectly by program base */ 69ba340e45Schristos /* Load from 32 bit GOT entry, relaxable. */ 70ba340e45Schristos RELOC_NUMBER (R_386_GOT32X, 43) 7198b9484cSchristos 7298b9484cSchristos /* Used by Intel. */ 7398b9484cSchristos RELOC_NUMBER (R_386_USED_BY_INTEL_200, 200) 7498b9484cSchristos 7598b9484cSchristos /* These are GNU extensions to enable C++ vtable garbage collection. */ 7698b9484cSchristos RELOC_NUMBER (R_386_GNU_VTINHERIT, 250) 7798b9484cSchristos RELOC_NUMBER (R_386_GNU_VTENTRY, 251) 7898b9484cSchristos END_RELOC_NUMBERS (R_386_max) 7998b9484cSchristos 8098b9484cSchristos #endif 81