pru.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* TI PRU ELF support for BFD.
  2. Copyright (C) 2014-2022 Free Software Foundation, Inc.
  3. Contributed by Dimitar Dimitrov <dimitar@dinux.eu>
  4. This file is part of BFD, the Binary File Descriptor library.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  16. MA 02110-1301, USA. */
  17. /* This file holds definitions specific to the TI PRU ELF ABI. Note
  18. that most of this is not actually implemented by BFD. */
  19. #ifndef _ELF_PRU_H
  20. #define _ELF_PRU_H
  21. #include "elf/reloc-macros.h"
  22. START_RELOC_NUMBERS (elf_pru_reloc_type)
  23. RELOC_NUMBER (R_PRU_NONE, 0)
  24. RELOC_NUMBER (R_PRU_16_PMEM, 5)
  25. RELOC_NUMBER (R_PRU_U16_PMEMIMM, 6)
  26. RELOC_NUMBER (R_PRU_BFD_RELOC_16, 8)
  27. RELOC_NUMBER (R_PRU_U16, 9)
  28. RELOC_NUMBER (R_PRU_32_PMEM, 10)
  29. RELOC_NUMBER (R_PRU_BFD_RELOC_32, 11)
  30. RELOC_NUMBER (R_PRU_S10_PCREL, 14)
  31. RELOC_NUMBER (R_PRU_U8_PCREL, 15)
  32. RELOC_NUMBER (R_PRU_LDI32, 18)
  33. /* Extensions required by GCC, or simply nice to have. */
  34. RELOC_NUMBER (R_PRU_GNU_BFD_RELOC_8, 64)
  35. RELOC_NUMBER (R_PRU_GNU_DIFF8, 65)
  36. RELOC_NUMBER (R_PRU_GNU_DIFF16, 66)
  37. RELOC_NUMBER (R_PRU_GNU_DIFF32, 67)
  38. RELOC_NUMBER (R_PRU_GNU_DIFF16_PMEM, 68)
  39. RELOC_NUMBER (R_PRU_GNU_DIFF32_PMEM, 69)
  40. RELOC_NUMBER (R_PRU_ILLEGAL, 70)
  41. END_RELOC_NUMBERS (R_PRU_maxext)
  42. /* Processor-specific section flags. */
  43. #endif /* _ELF_PRU_H */