198b9484cSchristos /* VAX ELF support for BFD. 2*02f41505Schristos Copyright (C) 2002-2024 Free Software Foundation, Inc. 398b9484cSchristos Contributed by Matt Thomas <matt@3am-software.com>. 498b9484cSchristos 598b9484cSchristos This file is part of BFD, the Binary File Descriptor library. 698b9484cSchristos 798b9484cSchristos This program is free software; you can redistribute it and/or modify 898b9484cSchristos it under the terms of the GNU General Public License as published by 998b9484cSchristos the Free Software Foundation; either version 3 of the License, or 1098b9484cSchristos (at your option) any later version. 1198b9484cSchristos 1298b9484cSchristos This program is distributed in the hope that it will be useful, 1398b9484cSchristos but WITHOUT ANY WARRANTY; without even the implied warranty of 1498b9484cSchristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1598b9484cSchristos GNU General Public License for more details. 1698b9484cSchristos 1798b9484cSchristos You should have received a copy of the GNU General Public License 1898b9484cSchristos along with this program; if not, write to the Free Software Foundation, 1998b9484cSchristos Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 2098b9484cSchristos 2198b9484cSchristos #ifndef _ELF_VAX_H 2298b9484cSchristos #define _ELF_VAX_H 2398b9484cSchristos 2498b9484cSchristos #include "elf/reloc-macros.h" 2598b9484cSchristos 2698b9484cSchristos /* Relocation types. */ 2798b9484cSchristos START_RELOC_NUMBERS (elf_vax_reloc_type) 2898b9484cSchristos RELOC_NUMBER (R_VAX_NONE, 0) /* No reloc */ 2998b9484cSchristos RELOC_NUMBER (R_VAX_32, 1) /* Direct 32 bit */ 3098b9484cSchristos RELOC_NUMBER (R_VAX_16, 2) /* Direct 16 bit */ 3198b9484cSchristos RELOC_NUMBER (R_VAX_8, 3) /* Direct 8 bit */ 3298b9484cSchristos RELOC_NUMBER (R_VAX_PC32, 4) /* PC relative 32 bit */ 3398b9484cSchristos RELOC_NUMBER (R_VAX_PC16, 5) /* PC relative 16 bit */ 3498b9484cSchristos RELOC_NUMBER (R_VAX_PC8, 6) /* PC relative 8 bit */ 3598b9484cSchristos RELOC_NUMBER (R_VAX_GOT32, 7) /* 32 bit PC relative GOT entry */ 3698b9484cSchristos RELOC_NUMBER (R_VAX_PLT32, 13) /* 32 bit PC relative PLT address */ 3798b9484cSchristos RELOC_NUMBER (R_VAX_COPY, 19) /* Copy symbol at runtime */ 3898b9484cSchristos RELOC_NUMBER (R_VAX_GLOB_DAT, 20) /* Create GOT entry */ 3998b9484cSchristos RELOC_NUMBER (R_VAX_JMP_SLOT, 21) /* Create PLT entry */ 4098b9484cSchristos RELOC_NUMBER (R_VAX_RELATIVE, 22) /* Adjust by program base */ 4198b9484cSchristos /* These are GNU extensions to enable C++ vtable garbage collection. */ 4298b9484cSchristos RELOC_NUMBER (R_VAX_GNU_VTINHERIT, 23) 4398b9484cSchristos RELOC_NUMBER (R_VAX_GNU_VTENTRY, 24) 4498b9484cSchristos END_RELOC_NUMBERS (R_VAX_max) 4598b9484cSchristos 4698b9484cSchristos /* Processor specific flags for the ELF header e_flags field. */ 4798b9484cSchristos #define EF_VAX_NONPIC 0x0001 /* Object contains non-PIC code */ 4898b9484cSchristos #define EF_VAX_DFLOAT 0x0100 /* Object contains D-Float insn. */ 4998b9484cSchristos #define EF_VAX_GFLOAT 0x0200 /* Object contains G-Float insn. */ 5098b9484cSchristos 5198b9484cSchristos #endif 52