/src/binutils-gdb/include/elf/cr16.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* CR16 ELF support for BFD. |
2 | | Copyright (C) 2007-2025 Free Software Foundation, Inc. |
3 | | Contributed by M R Swami Reddy. |
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_CR16_H |
22 | | #define _ELF_CR16_H |
23 | | |
24 | | #include "elf/reloc-macros.h" |
25 | | |
26 | | /* Creating indices for reloc_map_index array. */ |
27 | 940 | START_RELOC_NUMBERS(elf_cr16_reloc_type) |
28 | 940 | RELOC_NUMBER (R_CR16_NONE, 0) |
29 | 8 | RELOC_NUMBER (R_CR16_NUM8, 1) |
30 | 14 | RELOC_NUMBER (R_CR16_NUM16, 2) |
31 | 3 | RELOC_NUMBER (R_CR16_NUM32, 3) |
32 | 10 | RELOC_NUMBER (R_CR16_NUM32a, 4) |
33 | 4 | RELOC_NUMBER (R_CR16_REGREL4, 5) |
34 | 3 | RELOC_NUMBER (R_CR16_REGREL4a, 6) |
35 | 8 | RELOC_NUMBER (R_CR16_REGREL14, 7) |
36 | 18 | RELOC_NUMBER (R_CR16_REGREL14a, 8) |
37 | 61 | RELOC_NUMBER (R_CR16_REGREL16, 9) |
38 | 3 | RELOC_NUMBER (R_CR16_REGREL20, 10) |
39 | 9 | RELOC_NUMBER (R_CR16_REGREL20a, 11) |
40 | 24 | RELOC_NUMBER (R_CR16_ABS20, 12) |
41 | 12 | RELOC_NUMBER (R_CR16_ABS24, 13) |
42 | 6 | RELOC_NUMBER (R_CR16_IMM4, 14) |
43 | 8 | RELOC_NUMBER (R_CR16_IMM8, 15) |
44 | 12 | RELOC_NUMBER (R_CR16_IMM16, 16) |
45 | 3 | RELOC_NUMBER (R_CR16_IMM20, 17) |
46 | 8 | RELOC_NUMBER (R_CR16_IMM24, 18) |
47 | 5 | RELOC_NUMBER (R_CR16_IMM32, 19) |
48 | 22 | RELOC_NUMBER (R_CR16_IMM32a, 20) |
49 | 2 | RELOC_NUMBER (R_CR16_DISP4, 21) |
50 | 14 | RELOC_NUMBER (R_CR16_DISP8, 22) |
51 | 8 | RELOC_NUMBER (R_CR16_DISP16, 23) |
52 | 5 | RELOC_NUMBER (R_CR16_DISP24, 24) |
53 | 5 | RELOC_NUMBER (R_CR16_DISP24a, 25) |
54 | 3 | RELOC_NUMBER (R_CR16_SWITCH8, 26) |
55 | 3 | RELOC_NUMBER (R_CR16_SWITCH16, 27) |
56 | 3 | RELOC_NUMBER (R_CR16_SWITCH32, 28) |
57 | 3 | RELOC_NUMBER (R_CR16_GOT_REGREL20, 29) |
58 | 6 | RELOC_NUMBER (R_CR16_GOTC_REGREL20, 30) |
59 | 2 | RELOC_NUMBER (R_CR16_GLOB_DAT, 31) |
60 | 427 | END_RELOC_NUMBERS(R_CR16_MAX) |
61 | | |
62 | | #endif /* _ELF_CR16_H */ |