| 1 | /* TI PRU ELF support for BFD. |
| 2 | Copyright (C) 2014-2020 Free Software Foundation, Inc. |
| 3 | Contributed by Dimitar Dimitrov <dimitar@dinux.eu> |
| 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 |
| 19 | Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
| 20 | MA 02110-1301, USA. */ |
| 21 | |
| 22 | |
| 23 | /* This file holds definitions specific to the TI PRU ELF ABI. Note |
| 24 | that most of this is not actually implemented by BFD. */ |
| 25 | |
| 26 | #ifndef _ELF_PRU_H |
| 27 | #define _ELF_PRU_H |
| 28 | |
| 29 | #include "elf/reloc-macros.h" |
| 30 | |
| 31 | START_RELOC_NUMBERS (elf_pru_reloc_type) |
| 32 | RELOC_NUMBER (R_PRU_NONE, 0) |
| 33 | RELOC_NUMBER (R_PRU_16_PMEM, 5) |
| 34 | RELOC_NUMBER (R_PRU_U16_PMEMIMM, 6) |
| 35 | RELOC_NUMBER (R_PRU_BFD_RELOC_16, 8) |
| 36 | RELOC_NUMBER (R_PRU_U16, 9) |
| 37 | RELOC_NUMBER (R_PRU_32_PMEM, 10) |
| 38 | RELOC_NUMBER (R_PRU_BFD_RELOC_32, 11) |
| 39 | RELOC_NUMBER (R_PRU_S10_PCREL, 14) |
| 40 | RELOC_NUMBER (R_PRU_U8_PCREL, 15) |
| 41 | RELOC_NUMBER (R_PRU_LDI32, 18) |
| 42 | |
| 43 | /* Extensions required by GCC, or simply nice to have. */ |
| 44 | RELOC_NUMBER (R_PRU_GNU_BFD_RELOC_8, 64) |
| 45 | RELOC_NUMBER (R_PRU_GNU_DIFF8, 65) |
| 46 | RELOC_NUMBER (R_PRU_GNU_DIFF16, 66) |
| 47 | RELOC_NUMBER (R_PRU_GNU_DIFF32, 67) |
| 48 | RELOC_NUMBER (R_PRU_GNU_DIFF16_PMEM, 68) |
| 49 | RELOC_NUMBER (R_PRU_GNU_DIFF32_PMEM, 69) |
| 50 | RELOC_NUMBER (R_PRU_ILLEGAL, 70) |
| 51 | END_RELOC_NUMBERS (R_PRU_maxext) |
| 52 | |
| 53 | /* Processor-specific section flags. */ |
| 54 | |
| 55 | #endif /* _ELF_PRU_H */ |