epiphany.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* Adapteva EPIPHANY ELF support for BFD.
  2. Copyright (C) 2009-2015 Free Software Foundation, Inc.
  3. Contributed by Embecosm on behalf of Adapteva, Inc.
  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_EPIPHANY_H
  17. #define _ELF_EPIPHANY_H
  18. #include "elf/reloc-macros.h"
  19. /* Relocations. */
  20. START_RELOC_NUMBERS (elf_epiphany_reloc_type)
  21. RELOC_NUMBER (R_EPIPHANY_NONE, 0)
  22. /* Absolute address relocations. */
  23. RELOC_NUMBER (R_EPIPHANY_8, 1)
  24. RELOC_NUMBER (R_EPIPHANY_16, 2)
  25. RELOC_NUMBER (R_EPIPHANY_32, 3)
  26. /* PC-relative relocations. */
  27. RELOC_NUMBER (R_EPIPHANY_8_PCREL, 4)
  28. RELOC_NUMBER (R_EPIPHANY_16_PCREL,5)
  29. RELOC_NUMBER (R_EPIPHANY_32_PCREL,6)
  30. /* special forms for 8/24 bit branch displacements. */
  31. RELOC_NUMBER (R_EPIPHANY_SIMM8, 7)
  32. RELOC_NUMBER (R_EPIPHANY_SIMM24, 8)
  33. /* HIGH and LOW relocations taking part of a 32 bit address and
  34. depositing it into the IMM16 field of a destination. */
  35. RELOC_NUMBER (R_EPIPHANY_HIGH, 9)
  36. RELOC_NUMBER (R_EPIPHANY_LOW,10)
  37. /* 11 bit signed immediate value. */
  38. RELOC_NUMBER (R_EPIPHANY_SIMM11, 11)
  39. /* 11 bit magnitude addressing displacement. */
  40. RELOC_NUMBER (R_EPIPHANY_IMM11, 12)
  41. /* 8 bit immediate for MOV.S R,IMM8. */
  42. RELOC_NUMBER (R_EPIPHANY_IMM8, 13)
  43. END_RELOC_NUMBERS(R_EPIPHANY_max)
  44. #endif /* _ELF_EPIPHANY_H */