Andreas Schwab | 470aba9 | 2018-04-19 17:47:52 +0200 | [diff] [blame] | 1 | /* List the relocation types for RISC-V. -*- C -*- |
| 2 | This file is part of elfutils. |
| 3 | |
| 4 | This file is free software; you can redistribute it and/or modify |
| 5 | it under the terms of either |
| 6 | |
| 7 | * the GNU Lesser General Public License as published by the Free |
| 8 | Software Foundation; either version 3 of the License, or (at |
| 9 | your option) any later version |
| 10 | |
| 11 | or |
| 12 | |
| 13 | * the GNU General Public License as published by the Free |
| 14 | Software Foundation; either version 2 of the License, or (at |
| 15 | your option) any later version |
| 16 | |
| 17 | or both in parallel, as here. |
| 18 | |
| 19 | elfutils is distributed in the hope that it will be useful, but |
| 20 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | General Public License for more details. |
| 23 | |
| 24 | You should have received copies of the GNU General Public License and |
| 25 | the GNU Lesser General Public License along with this program. If |
| 26 | not, see <http://www.gnu.org/licenses/>. */ |
| 27 | |
| 28 | /* NAME, REL|EXEC|DYN */ |
| 29 | |
| 30 | RELOC_TYPE (NONE, EXEC|DYN) |
| 31 | RELOC_TYPE (32, REL|EXEC|DYN) |
| 32 | RELOC_TYPE (64, REL|EXEC|DYN) |
| 33 | RELOC_TYPE (RELATIVE, EXEC|DYN) |
| 34 | RELOC_TYPE (COPY, EXEC|DYN) |
| 35 | RELOC_TYPE (JUMP_SLOT, EXEC|DYN) |
| 36 | RELOC_TYPE (TLS_DTPMOD32, EXEC|DYN) |
| 37 | RELOC_TYPE (TLS_DTPMOD64, EXEC|DYN) |
| 38 | RELOC_TYPE (TLS_DTPREL32, EXEC|DYN) |
| 39 | RELOC_TYPE (TLS_DTPREL64, EXEC|DYN) |
| 40 | RELOC_TYPE (TLS_TPREL32, EXEC|DYN) |
| 41 | RELOC_TYPE (TLS_TPREL64, EXEC|DYN) |
| 42 | RELOC_TYPE (BRANCH, REL) |
| 43 | RELOC_TYPE (JAL, REL) |
| 44 | RELOC_TYPE (CALL, REL) |
| 45 | RELOC_TYPE (CALL_PLT, REL) |
| 46 | RELOC_TYPE (GOT_HI20, REL) |
| 47 | RELOC_TYPE (TLS_GOT_HI20, REL) |
| 48 | RELOC_TYPE (TLS_GD_HI20, REL) |
| 49 | RELOC_TYPE (PCREL_HI20, REL) |
| 50 | RELOC_TYPE (PCREL_LO12_I, REL) |
| 51 | RELOC_TYPE (PCREL_LO12_S, REL) |
| 52 | RELOC_TYPE (HI20, REL) |
| 53 | RELOC_TYPE (LO12_I, REL) |
| 54 | RELOC_TYPE (LO12_S, REL) |
| 55 | RELOC_TYPE (TPREL_HI20, REL) |
| 56 | RELOC_TYPE (TPREL_LO12_I, REL) |
| 57 | RELOC_TYPE (TPREL_LO12_S, REL) |
| 58 | RELOC_TYPE (TPREL_ADD, REL) |
| 59 | RELOC_TYPE (ADD8, REL) |
| 60 | RELOC_TYPE (ADD16, REL) |
| 61 | RELOC_TYPE (ADD32, REL) |
| 62 | RELOC_TYPE (ADD64, REL) |
| 63 | RELOC_TYPE (SUB8, REL) |
| 64 | RELOC_TYPE (SUB16, REL) |
| 65 | RELOC_TYPE (SUB32, REL) |
| 66 | RELOC_TYPE (SUB64, REL) |
| 67 | RELOC_TYPE (GNU_VTINHERIT, REL) |
| 68 | RELOC_TYPE (GNU_VTENTRY, REL) |
| 69 | RELOC_TYPE (ALIGN, REL) |
| 70 | RELOC_TYPE (RVC_BRANCH, REL) |
| 71 | RELOC_TYPE (RVC_JUMP, REL) |
| 72 | RELOC_TYPE (RVC_LUI, REL) |
| 73 | RELOC_TYPE (GPREL_I, REL) |
| 74 | RELOC_TYPE (GPREL_S, REL) |
| 75 | RELOC_TYPE (TPREL_I, REL) |
| 76 | RELOC_TYPE (TPREL_S, REL) |
| 77 | RELOC_TYPE (RELAX, REL) |
| 78 | RELOC_TYPE (SUB6, REL) |
| 79 | RELOC_TYPE (SET6, REL) |
| 80 | RELOC_TYPE (SET8, REL) |
| 81 | RELOC_TYPE (SET16, REL) |
| 82 | RELOC_TYPE (SET32, REL) |
| 83 | RELOC_TYPE (32_PCREL, REL) |