Home | History | Annotate | Line # | Download | only in elf
      1   1.1  christos /* Lattice Mico32 ELF support for BFD.
      2  1.10  christos    Copyright (C) 2008-2025 Free Software Foundation, Inc.
      3   1.1  christos    Contributed by Jon Beniston <jon (at) beniston.com>
      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_LM32_H
     22   1.1  christos #define _ELF_LM32_H
     23   1.1  christos 
     24   1.1  christos #include "elf/reloc-macros.h"
     25   1.1  christos 
     26   1.1  christos /* Relocations.  */
     27   1.1  christos START_RELOC_NUMBERS (elf_lm32_reloc_type)
     28   1.1  christos      RELOC_NUMBER (R_LM32_NONE,                      0)
     29   1.1  christos      RELOC_NUMBER (R_LM32_8,                         1)
     30   1.1  christos      RELOC_NUMBER (R_LM32_16,                        2)
     31   1.1  christos      RELOC_NUMBER (R_LM32_32,                        3)
     32   1.1  christos      RELOC_NUMBER (R_LM32_HI16,                      4)
     33   1.1  christos      RELOC_NUMBER (R_LM32_LO16,                      5)
     34   1.1  christos      RELOC_NUMBER (R_LM32_GPREL16,                   6)
     35   1.1  christos      RELOC_NUMBER (R_LM32_CALL,                      7)
     36   1.1  christos      RELOC_NUMBER (R_LM32_BRANCH,                    8)
     37   1.1  christos      RELOC_NUMBER (R_LM32_GNU_VTINHERIT,             9)
     38   1.1  christos      RELOC_NUMBER (R_LM32_GNU_VTENTRY,               10)
     39   1.1  christos      RELOC_NUMBER (R_LM32_16_GOT,                    11)
     40   1.1  christos      RELOC_NUMBER (R_LM32_GOTOFF_HI16,               12)
     41   1.1  christos      RELOC_NUMBER (R_LM32_GOTOFF_LO16,               13)
     42   1.1  christos      RELOC_NUMBER (R_LM32_COPY,                      14)
     43   1.1  christos      RELOC_NUMBER (R_LM32_GLOB_DAT,                  15)
     44   1.1  christos      RELOC_NUMBER (R_LM32_JMP_SLOT,                  16)
     45   1.1  christos      RELOC_NUMBER (R_LM32_RELATIVE,                  17)
     46   1.1  christos END_RELOC_NUMBERS (R_LM32_max)
     47   1.1  christos 
     48   1.1  christos /* Processor specific flags for the ELF header e_flags field.  */
     49   1.1  christos 
     50   1.1  christos #define EF_LM32_MACH                 0x00000001
     51   1.1  christos 
     52   1.1  christos /* Various CPU types.  */
     53   1.1  christos 
     54   1.1  christos #define E_LM32_MACH                  0x1
     55   1.1  christos 
     56   1.1  christos #endif /* _ELF_LM32_H */
     57