Home | History | Annotate | Line # | Download | only in elf
      1  1.1  christos /* Visium ELF support for BFD.
      2  1.1  christos 
      3  1.8  christos    Copyright (C) 2002-2025 Free Software Foundation, Inc.
      4  1.1  christos 
      5  1.1  christos    This file is part of BFD, the Binary File Descriptor library.
      6  1.1  christos 
      7  1.1  christos    This program is free software; you can redistribute it and/or modify
      8  1.1  christos    it under the terms of the GNU General Public License as published by
      9  1.1  christos    the Free Software Foundation; either version 3 of the License, or
     10  1.1  christos    (at your option) any later version.
     11  1.1  christos 
     12  1.1  christos    This program is distributed in the hope that it will be useful,
     13  1.1  christos    but WITHOUT ANY WARRANTY; without even the implied warranty of
     14  1.1  christos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15  1.1  christos    GNU General Public License for more details.
     16  1.1  christos 
     17  1.1  christos    You should have received a copy of the GNU General Public License
     18  1.1  christos    along with this program; if not, write to the Free Software Foundation,
     19  1.1  christos    Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
     20  1.1  christos 
     21  1.1  christos #ifndef _ELF_VISIUM_H
     22  1.1  christos #define _ELF_VISIUM_H
     23  1.1  christos 
     24  1.1  christos #include "elf/reloc-macros.h"
     25  1.1  christos 
     26  1.1  christos /* Processor specific flags for the ELF header e_flags field.  */
     27  1.1  christos #define EF_VISIUM_ARCH_MCM   0x01
     28  1.1  christos #define EF_VISIUM_ARCH_MCM24 0x02
     29  1.1  christos #define EF_VISIUM_ARCH_GR6   0x04
     30  1.1  christos 
     31  1.1  christos /* Relocations.  */
     32  1.1  christos START_RELOC_NUMBERS (elf_visium_reloc_type)
     33  1.1  christos   RELOC_NUMBER (R_VISIUM_NONE, 0)
     34  1.1  christos   RELOC_NUMBER (R_VISIUM_8, 1)
     35  1.1  christos   RELOC_NUMBER (R_VISIUM_16, 2)
     36  1.1  christos   RELOC_NUMBER (R_VISIUM_32, 3)
     37  1.1  christos   RELOC_NUMBER (R_VISIUM_8_PCREL, 4)
     38  1.1  christos   RELOC_NUMBER (R_VISIUM_16_PCREL, 5)
     39  1.1  christos   RELOC_NUMBER (R_VISIUM_32_PCREL, 6)
     40  1.1  christos   RELOC_NUMBER (R_VISIUM_PC16, 7)
     41  1.1  christos   RELOC_NUMBER (R_VISIUM_HI16, 8)
     42  1.1  christos   RELOC_NUMBER (R_VISIUM_LO16, 9)
     43  1.1  christos   RELOC_NUMBER (R_VISIUM_IM16, 10)
     44  1.1  christos   RELOC_NUMBER (R_VISIUM_HI16_PCREL, 11)
     45  1.1  christos   RELOC_NUMBER (R_VISIUM_LO16_PCREL, 12)
     46  1.1  christos   RELOC_NUMBER (R_VISIUM_IM16_PCREL, 13)
     47  1.1  christos   RELOC_NUMBER (R_VISIUM_GNU_VTINHERIT, 200)
     48  1.1  christos   RELOC_NUMBER (R_VISIUM_GNU_VTENTRY, 201)
     49  1.1  christos END_RELOC_NUMBERS(R_VISIUM_max)
     50  1.1  christos 
     51  1.1  christos #endif /* _ELF_VISIUM_H */
     52