1968cf8f2Schristos /* Visium ELF support for BFD. 2968cf8f2Schristos 3*02f41505Schristos Copyright (C) 2002-2024 Free Software Foundation, Inc. 4968cf8f2Schristos 5968cf8f2Schristos This file is part of BFD, the Binary File Descriptor library. 6968cf8f2Schristos 7968cf8f2Schristos This program is free software; you can redistribute it and/or modify 8968cf8f2Schristos it under the terms of the GNU General Public License as published by 9968cf8f2Schristos the Free Software Foundation; either version 3 of the License, or 10968cf8f2Schristos (at your option) any later version. 11968cf8f2Schristos 12968cf8f2Schristos This program is distributed in the hope that it will be useful, 13968cf8f2Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 14968cf8f2Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15968cf8f2Schristos GNU General Public License for more details. 16968cf8f2Schristos 17968cf8f2Schristos You should have received a copy of the GNU General Public License 18968cf8f2Schristos along with this program; if not, write to the Free Software Foundation, 19968cf8f2Schristos Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ 20968cf8f2Schristos 21968cf8f2Schristos #ifndef _ELF_VISIUM_H 22968cf8f2Schristos #define _ELF_VISIUM_H 23968cf8f2Schristos 24968cf8f2Schristos #include "elf/reloc-macros.h" 25968cf8f2Schristos 26968cf8f2Schristos /* Processor specific flags for the ELF header e_flags field. */ 27968cf8f2Schristos #define EF_VISIUM_ARCH_MCM 0x01 28968cf8f2Schristos #define EF_VISIUM_ARCH_MCM24 0x02 29968cf8f2Schristos #define EF_VISIUM_ARCH_GR6 0x04 30968cf8f2Schristos 31968cf8f2Schristos /* Relocations. */ 32968cf8f2Schristos START_RELOC_NUMBERS (elf_visium_reloc_type) 33968cf8f2Schristos RELOC_NUMBER (R_VISIUM_NONE, 0) 34968cf8f2Schristos RELOC_NUMBER (R_VISIUM_8, 1) 35968cf8f2Schristos RELOC_NUMBER (R_VISIUM_16, 2) 36968cf8f2Schristos RELOC_NUMBER (R_VISIUM_32, 3) 37968cf8f2Schristos RELOC_NUMBER (R_VISIUM_8_PCREL, 4) 38968cf8f2Schristos RELOC_NUMBER (R_VISIUM_16_PCREL, 5) 39968cf8f2Schristos RELOC_NUMBER (R_VISIUM_32_PCREL, 6) 40968cf8f2Schristos RELOC_NUMBER (R_VISIUM_PC16, 7) 41968cf8f2Schristos RELOC_NUMBER (R_VISIUM_HI16, 8) 42968cf8f2Schristos RELOC_NUMBER (R_VISIUM_LO16, 9) 43968cf8f2Schristos RELOC_NUMBER (R_VISIUM_IM16, 10) 44968cf8f2Schristos RELOC_NUMBER (R_VISIUM_HI16_PCREL, 11) 45968cf8f2Schristos RELOC_NUMBER (R_VISIUM_LO16_PCREL, 12) 46968cf8f2Schristos RELOC_NUMBER (R_VISIUM_IM16_PCREL, 13) 47968cf8f2Schristos RELOC_NUMBER (R_VISIUM_GNU_VTINHERIT, 200) 48968cf8f2Schristos RELOC_NUMBER (R_VISIUM_GNU_VTENTRY, 201) 49968cf8f2Schristos END_RELOC_NUMBERS(R_VISIUM_max) 50968cf8f2Schristos 51968cf8f2Schristos #endif /* _ELF_VISIUM_H */ 52