cr16.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* CR16 ELF support for BFD.
  2. Copyright (C) 2007-2022 Free Software Foundation, Inc.
  3. Contributed by M R Swami Reddy.
  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 Foundation,
  15. Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
  16. #ifndef _ELF_CR16_H
  17. #define _ELF_CR16_H
  18. #include "elf/reloc-macros.h"
  19. /* Creating indices for reloc_map_index array. */
  20. START_RELOC_NUMBERS(elf_cr16_reloc_type)
  21. RELOC_NUMBER (R_CR16_NONE, 0)
  22. RELOC_NUMBER (R_CR16_NUM8, 1)
  23. RELOC_NUMBER (R_CR16_NUM16, 2)
  24. RELOC_NUMBER (R_CR16_NUM32, 3)
  25. RELOC_NUMBER (R_CR16_NUM32a, 4)
  26. RELOC_NUMBER (R_CR16_REGREL4, 5)
  27. RELOC_NUMBER (R_CR16_REGREL4a, 6)
  28. RELOC_NUMBER (R_CR16_REGREL14, 7)
  29. RELOC_NUMBER (R_CR16_REGREL14a, 8)
  30. RELOC_NUMBER (R_CR16_REGREL16, 9)
  31. RELOC_NUMBER (R_CR16_REGREL20, 10)
  32. RELOC_NUMBER (R_CR16_REGREL20a, 11)
  33. RELOC_NUMBER (R_CR16_ABS20, 12)
  34. RELOC_NUMBER (R_CR16_ABS24, 13)
  35. RELOC_NUMBER (R_CR16_IMM4, 14)
  36. RELOC_NUMBER (R_CR16_IMM8, 15)
  37. RELOC_NUMBER (R_CR16_IMM16, 16)
  38. RELOC_NUMBER (R_CR16_IMM20, 17)
  39. RELOC_NUMBER (R_CR16_IMM24, 18)
  40. RELOC_NUMBER (R_CR16_IMM32, 19)
  41. RELOC_NUMBER (R_CR16_IMM32a, 20)
  42. RELOC_NUMBER (R_CR16_DISP4, 21)
  43. RELOC_NUMBER (R_CR16_DISP8, 22)
  44. RELOC_NUMBER (R_CR16_DISP16, 23)
  45. RELOC_NUMBER (R_CR16_DISP24, 24)
  46. RELOC_NUMBER (R_CR16_DISP24a, 25)
  47. RELOC_NUMBER (R_CR16_SWITCH8, 26)
  48. RELOC_NUMBER (R_CR16_SWITCH16, 27)
  49. RELOC_NUMBER (R_CR16_SWITCH32, 28)
  50. RELOC_NUMBER (R_CR16_GOT_REGREL20, 29)
  51. RELOC_NUMBER (R_CR16_GOTC_REGREL20, 30)
  52. RELOC_NUMBER (R_CR16_GLOB_DAT, 31)
  53. END_RELOC_NUMBERS(R_CR16_MAX)
  54. #endif /* _ELF_CR16_H */