i860.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* i860 ELF support for BFD.
  2. Copyright (C) 2000-2022 Free Software Foundation, Inc.
  3. Contributed by Jason Eckhardt <jle@cygnus.com>.
  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_I860_H
  17. #define _ELF_I860_H
  18. /* Note: i860 ELF is defined to use only RELA relocations. */
  19. #include "elf/reloc-macros.h"
  20. START_RELOC_NUMBERS (elf_i860_reloc_type)
  21. RELOC_NUMBER (R_860_NONE, 0x00) /* No reloc */
  22. RELOC_NUMBER (R_860_32, 0x01) /* S+A */
  23. RELOC_NUMBER (R_860_COPY, 0x02) /* No calculation */
  24. RELOC_NUMBER (R_860_GLOB_DAT, 0x03) /* S, Create GOT entry */
  25. RELOC_NUMBER (R_860_JUMP_SLOT, 0x04) /* S+A, Create PLT entry */
  26. RELOC_NUMBER (R_860_RELATIVE, 0x05) /* B+A, Adj by program base */
  27. RELOC_NUMBER (R_860_PC26, 0x30) /* (S+A-P) >> 2 */
  28. RELOC_NUMBER (R_860_PLT26, 0x31) /* (L+A-P) >> 2 */
  29. RELOC_NUMBER (R_860_PC16, 0x32) /* (S+A-P) >> 2 */
  30. RELOC_NUMBER (R_860_LOW0, 0x40) /* S+A */
  31. RELOC_NUMBER (R_860_SPLIT0, 0x42) /* S+A */
  32. RELOC_NUMBER (R_860_LOW1, 0x44) /* S+A */
  33. RELOC_NUMBER (R_860_SPLIT1, 0x46) /* S+A */
  34. RELOC_NUMBER (R_860_LOW2, 0x48) /* S+A */
  35. RELOC_NUMBER (R_860_SPLIT2, 0x4A) /* S+A */
  36. RELOC_NUMBER (R_860_LOW3, 0x4C) /* S+A */
  37. RELOC_NUMBER (R_860_LOGOT0, 0x50) /* G */
  38. RELOC_NUMBER (R_860_SPGOT0, 0x52) /* G */
  39. RELOC_NUMBER (R_860_LOGOT1, 0x54) /* G */
  40. RELOC_NUMBER (R_860_SPGOT1, 0x56) /* G */
  41. RELOC_NUMBER (R_860_LOGOTOFF0, 0x60) /* O */
  42. RELOC_NUMBER (R_860_SPGOTOFF0, 0x62) /* O */
  43. RELOC_NUMBER (R_860_LOGOTOFF1, 0x64) /* O */
  44. RELOC_NUMBER (R_860_SPGOTOFF1, 0x66) /* O */
  45. RELOC_NUMBER (R_860_LOGOTOFF2, 0x68) /* O */
  46. RELOC_NUMBER (R_860_LOGOTOFF3, 0x6C) /* O */
  47. RELOC_NUMBER (R_860_LOPC, 0x70) /* (S+A-P) >> 2 */
  48. RELOC_NUMBER (R_860_HIGHADJ, 0x80) /* hiadj(S+A) */
  49. RELOC_NUMBER (R_860_HAGOT, 0x90) /* hiadj(G) */
  50. RELOC_NUMBER (R_860_HAGOTOFF, 0xA0) /* hiadj(O) */
  51. RELOC_NUMBER (R_860_HAPC, 0xB0) /* hiadj((S+A-P) >> 2) */
  52. RELOC_NUMBER (R_860_HIGH, 0xC0) /* (S+A) >> 16 */
  53. RELOC_NUMBER (R_860_HIGOT, 0xD0) /* G >> 16 */
  54. RELOC_NUMBER (R_860_HIGOTOFF, 0xE0) /* O */
  55. END_RELOC_NUMBERS (R_860_max)
  56. #endif