/src/binutils-gdb/include/elf/i860.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* i860 ELF support for BFD. |
2 | | Copyright (C) 2000-2025 Free Software Foundation, Inc. |
3 | | |
4 | | Contributed by Jason Eckhardt <jle@cygnus.com>. |
5 | | |
6 | | This file is part of BFD, the Binary File Descriptor library. |
7 | | |
8 | | This program is free software; you can redistribute it and/or modify |
9 | | it under the terms of the GNU General Public License as published by |
10 | | the Free Software Foundation; either version 3 of the License, or |
11 | | (at your option) any later version. |
12 | | |
13 | | This program is distributed in the hope that it will be useful, |
14 | | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | | GNU General Public License for more details. |
17 | | |
18 | | You should have received a copy of the GNU General Public License |
19 | | along with this program; if not, write to the Free Software Foundation, |
20 | | Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ |
21 | | |
22 | | #ifndef _ELF_I860_H |
23 | | #define _ELF_I860_H |
24 | | |
25 | | /* Note: i860 ELF is defined to use only RELA relocations. */ |
26 | | |
27 | | #include "elf/reloc-macros.h" |
28 | | |
29 | 36.9k | START_RELOC_NUMBERS (elf_i860_reloc_type) |
30 | 36.9k | RELOC_NUMBER (R_860_NONE, 0x00) /* No reloc */ |
31 | 910 | RELOC_NUMBER (R_860_32, 0x01) /* S+A */ |
32 | 710 | RELOC_NUMBER (R_860_COPY, 0x02) /* No calculation */ |
33 | 390 | RELOC_NUMBER (R_860_GLOB_DAT, 0x03) /* S, Create GOT entry */ |
34 | 484 | RELOC_NUMBER (R_860_JUMP_SLOT, 0x04) /* S+A, Create PLT entry */ |
35 | 452 | RELOC_NUMBER (R_860_RELATIVE, 0x05) /* B+A, Adj by program base */ |
36 | 480 | RELOC_NUMBER (R_860_PC26, 0x30) /* (S+A-P) >> 2 */ |
37 | 268 | RELOC_NUMBER (R_860_PLT26, 0x31) /* (L+A-P) >> 2 */ |
38 | 252 | RELOC_NUMBER (R_860_PC16, 0x32) /* (S+A-P) >> 2 */ |
39 | 440 | RELOC_NUMBER (R_860_LOW0, 0x40) /* S+A */ |
40 | 234 | RELOC_NUMBER (R_860_SPLIT0, 0x42) /* S+A */ |
41 | 350 | RELOC_NUMBER (R_860_LOW1, 0x44) /* S+A */ |
42 | 429 | RELOC_NUMBER (R_860_SPLIT1, 0x46) /* S+A */ |
43 | 329 | RELOC_NUMBER (R_860_LOW2, 0x48) /* S+A */ |
44 | 236 | RELOC_NUMBER (R_860_SPLIT2, 0x4A) /* S+A */ |
45 | 466 | RELOC_NUMBER (R_860_LOW3, 0x4C) /* S+A */ |
46 | 237 | RELOC_NUMBER (R_860_LOGOT0, 0x50) /* G */ |
47 | 393 | RELOC_NUMBER (R_860_SPGOT0, 0x52) /* G */ |
48 | 264 | RELOC_NUMBER (R_860_LOGOT1, 0x54) /* G */ |
49 | 224 | RELOC_NUMBER (R_860_SPGOT1, 0x56) /* G */ |
50 | 500 | RELOC_NUMBER (R_860_LOGOTOFF0, 0x60) /* O */ |
51 | 428 | RELOC_NUMBER (R_860_SPGOTOFF0, 0x62) /* O */ |
52 | 259 | RELOC_NUMBER (R_860_LOGOTOFF1, 0x64) /* O */ |
53 | 284 | RELOC_NUMBER (R_860_SPGOTOFF1, 0x66) /* O */ |
54 | 241 | RELOC_NUMBER (R_860_LOGOTOFF2, 0x68) /* O */ |
55 | 257 | RELOC_NUMBER (R_860_LOGOTOFF3, 0x6C) /* O */ |
56 | 350 | RELOC_NUMBER (R_860_LOPC, 0x70) /* (S+A-P) >> 2 */ |
57 | 396 | RELOC_NUMBER (R_860_HIGHADJ, 0x80) /* hiadj(S+A) */ |
58 | 317 | RELOC_NUMBER (R_860_HAGOT, 0x90) /* hiadj(G) */ |
59 | 385 | RELOC_NUMBER (R_860_HAGOTOFF, 0xA0) /* hiadj(O) */ |
60 | 212 | RELOC_NUMBER (R_860_HAPC, 0xB0) /* hiadj((S+A-P) >> 2) */ |
61 | 274 | RELOC_NUMBER (R_860_HIGH, 0xC0) /* (S+A) >> 16 */ |
62 | 224 | RELOC_NUMBER (R_860_HIGOT, 0xD0) /* G >> 16 */ |
63 | 358 | RELOC_NUMBER (R_860_HIGOTOFF, 0xE0) /* O */ |
64 | 14.9k | END_RELOC_NUMBERS (R_860_max) |
65 | | |
66 | | #endif |