Coverage Report

Created: 2025-06-24 06:45

/src/binutils-gdb/include/elf/crx.h
Line
Count
Source (jump to first uncovered line)
1
/* CRX ELF support for BFD.
2
   Copyright (C) 2004-2025 Free Software Foundation, Inc.
3
   Contributed by Tomer Levi, NSC, Israel.
4
   Originally written for GAS 2.12 by Tomer Levi, NSC, Israel.
5
   Updates, BFDizing, GNUifying and ELF support by Tomer Levi.
6
7
   This file is part of BFD, the Binary File Descriptor library.
8
9
   This program is free software; you can redistribute it and/or modify
10
   it under the terms of the GNU General Public License as published by
11
   the Free Software Foundation; either version 3 of the License, or
12
   (at your option) any later version.
13
14
   This program is distributed in the hope that it will be useful,
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
   GNU General Public License for more details.
18
19
   You should have received a copy of the GNU General Public License
20
   along with this program; if not, write to the Free Software Foundation,
21
   Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
22
23
#ifndef _ELF_CRX_H
24
#define _ELF_CRX_H
25
26
#include "elf/reloc-macros.h"
27
28
/* Creating indices for reloc_map_index array.  */
29
822
START_RELOC_NUMBERS(elf_crx_reloc_type)
30
822
  RELOC_NUMBER (R_CRX_NONE,           0)
31
19
  RELOC_NUMBER (R_CRX_REL4,           1)
32
5
  RELOC_NUMBER (R_CRX_REL8,           2)
33
4
  RELOC_NUMBER (R_CRX_REL8_CMP,       3)
34
10
  RELOC_NUMBER (R_CRX_REL16,          4)
35
4
  RELOC_NUMBER (R_CRX_REL24,          5)
36
8
  RELOC_NUMBER (R_CRX_REL32,          6)
37
4
  RELOC_NUMBER (R_CRX_REGREL12,       7)
38
12
  RELOC_NUMBER (R_CRX_REGREL22,       8)
39
42
  RELOC_NUMBER (R_CRX_REGREL28,       9)
40
7
  RELOC_NUMBER (R_CRX_REGREL32,       10)
41
6
  RELOC_NUMBER (R_CRX_ABS16,          11)
42
5
  RELOC_NUMBER (R_CRX_ABS32,          12)
43
3
  RELOC_NUMBER (R_CRX_NUM8,       13)
44
3
  RELOC_NUMBER (R_CRX_NUM16,          14)
45
7
  RELOC_NUMBER (R_CRX_NUM32,          15)
46
11
  RELOC_NUMBER (R_CRX_IMM16,        16)
47
4
  RELOC_NUMBER (R_CRX_IMM32,        17)
48
5
  RELOC_NUMBER (R_CRX_SWITCH8,        18)
49
2
  RELOC_NUMBER (R_CRX_SWITCH16,       19)
50
3
  RELOC_NUMBER (R_CRX_SWITCH32,       20)
51
468
END_RELOC_NUMBERS(R_CRX_MAX)
52
  
53
#endif /* _ELF_CRX_H */