Coverage Report

Created: 2025-06-24 06:45

/src/binutils-gdb/include/elf/lm32.h
Line
Count
Source (jump to first uncovered line)
1
/* Lattice Mico32 ELF support for BFD.
2
   Copyright (C) 2008-2025 Free Software Foundation, Inc.
3
   Contributed by Jon Beniston <jon@beniston.com>
4
5
   This file is part of BFD, the Binary File Descriptor library.
6
7
   This program is free software; you can redistribute it and/or modify
8
   it under the terms of the GNU General Public License as published by
9
   the Free Software Foundation; either version 3 of the License, or
10
   (at your option) any later version.
11
12
   This program is distributed in the hope that it will be useful,
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
   GNU General Public License for more details.
16
17
   You should have received a copy of the GNU General Public License
18
   along with this program; if not, write to the Free Software Foundation,
19
   Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
20
21
#ifndef _ELF_LM32_H
22
#define _ELF_LM32_H
23
24
#include "elf/reloc-macros.h"
25
26
/* Relocations.  */
27
995
START_RELOC_NUMBERS (elf_lm32_reloc_type)
28
995
     RELOC_NUMBER (R_LM32_NONE,                      0)
29
19
     RELOC_NUMBER (R_LM32_8,                         1)
30
9
     RELOC_NUMBER (R_LM32_16,                        2)
31
3
     RELOC_NUMBER (R_LM32_32,                        3)
32
23
     RELOC_NUMBER (R_LM32_HI16,                      4)
33
6
     RELOC_NUMBER (R_LM32_LO16,                      5)
34
7
     RELOC_NUMBER (R_LM32_GPREL16,                   6)
35
10
     RELOC_NUMBER (R_LM32_CALL,                      7)
36
5
     RELOC_NUMBER (R_LM32_BRANCH,                    8)
37
59
     RELOC_NUMBER (R_LM32_GNU_VTINHERIT,             9)
38
3
     RELOC_NUMBER (R_LM32_GNU_VTENTRY,               10)
39
6
     RELOC_NUMBER (R_LM32_16_GOT,                    11)
40
10
     RELOC_NUMBER (R_LM32_GOTOFF_HI16,               12)
41
6
     RELOC_NUMBER (R_LM32_GOTOFF_LO16,               13)
42
6
     RELOC_NUMBER (R_LM32_COPY,                      14)
43
44
     RELOC_NUMBER (R_LM32_GLOB_DAT,                  15)
44
15
     RELOC_NUMBER (R_LM32_JMP_SLOT,                  16)
45
6
     RELOC_NUMBER (R_LM32_RELATIVE,                  17)
46
559
END_RELOC_NUMBERS (R_LM32_max)
47
48
/* Processor specific flags for the ELF header e_flags field.  */
49
50
0
#define EF_LM32_MACH                 0x00000001
51
52
/* Various CPU types.  */
53
54
0
#define E_LM32_MACH                  0x1
55
56
#endif /* _ELF_LM32_H */