crx.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* CRX ELF support for BFD.
  2. Copyright (C) 2004-2022 Free Software Foundation, Inc.
  3. Contributed by Tomer Levi, NSC, Israel.
  4. Originally written for GAS 2.12 by Tomer Levi, NSC, Israel.
  5. Updates, BFDizing, GNUifying and ELF support by Tomer Levi.
  6. This file is part of BFD, the Binary File Descriptor library.
  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. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software Foundation,
  17. Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
  18. #ifndef _ELF_CRX_H
  19. #define _ELF_CRX_H
  20. #include "elf/reloc-macros.h"
  21. /* Creating indices for reloc_map_index array. */
  22. START_RELOC_NUMBERS(elf_crx_reloc_type)
  23. RELOC_NUMBER (R_CRX_NONE, 0)
  24. RELOC_NUMBER (R_CRX_REL4, 1)
  25. RELOC_NUMBER (R_CRX_REL8, 2)
  26. RELOC_NUMBER (R_CRX_REL8_CMP, 3)
  27. RELOC_NUMBER (R_CRX_REL16, 4)
  28. RELOC_NUMBER (R_CRX_REL24, 5)
  29. RELOC_NUMBER (R_CRX_REL32, 6)
  30. RELOC_NUMBER (R_CRX_REGREL12, 7)
  31. RELOC_NUMBER (R_CRX_REGREL22, 8)
  32. RELOC_NUMBER (R_CRX_REGREL28, 9)
  33. RELOC_NUMBER (R_CRX_REGREL32, 10)
  34. RELOC_NUMBER (R_CRX_ABS16, 11)
  35. RELOC_NUMBER (R_CRX_ABS32, 12)
  36. RELOC_NUMBER (R_CRX_NUM8, 13)
  37. RELOC_NUMBER (R_CRX_NUM16, 14)
  38. RELOC_NUMBER (R_CRX_NUM32, 15)
  39. RELOC_NUMBER (R_CRX_IMM16, 16)
  40. RELOC_NUMBER (R_CRX_IMM32, 17)
  41. RELOC_NUMBER (R_CRX_SWITCH8, 18)
  42. RELOC_NUMBER (R_CRX_SWITCH16, 19)
  43. RELOC_NUMBER (R_CRX_SWITCH32, 20)
  44. END_RELOC_NUMBERS(R_CRX_MAX)
  45. #endif /* _ELF_CRX_H */