visium.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Visium ELF support for BFD.
  2. Copyright (C) 2002-2015 Free Software Foundation, Inc.
  3. This file is part of BFD, the Binary File Descriptor library.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software Foundation,
  14. Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
  15. #ifndef _ELF_VISIUM_H
  16. #define _ELF_VISIUM_H
  17. #include "elf/reloc-macros.h"
  18. /* Processor specific flags for the ELF header e_flags field. */
  19. #define EF_VISIUM_ARCH_MCM 0x01
  20. #define EF_VISIUM_ARCH_MCM24 0x02
  21. #define EF_VISIUM_ARCH_GR6 0x04
  22. /* Relocations. */
  23. START_RELOC_NUMBERS (elf_visium_reloc_type)
  24. RELOC_NUMBER (R_VISIUM_NONE, 0)
  25. RELOC_NUMBER (R_VISIUM_8, 1)
  26. RELOC_NUMBER (R_VISIUM_16, 2)
  27. RELOC_NUMBER (R_VISIUM_32, 3)
  28. RELOC_NUMBER (R_VISIUM_8_PCREL, 4)
  29. RELOC_NUMBER (R_VISIUM_16_PCREL, 5)
  30. RELOC_NUMBER (R_VISIUM_32_PCREL, 6)
  31. RELOC_NUMBER (R_VISIUM_PC16, 7)
  32. RELOC_NUMBER (R_VISIUM_HI16, 8)
  33. RELOC_NUMBER (R_VISIUM_LO16, 9)
  34. RELOC_NUMBER (R_VISIUM_IM16, 10)
  35. RELOC_NUMBER (R_VISIUM_HI16_PCREL, 11)
  36. RELOC_NUMBER (R_VISIUM_LO16_PCREL, 12)
  37. RELOC_NUMBER (R_VISIUM_IM16_PCREL, 13)
  38. RELOC_NUMBER (R_VISIUM_GNU_VTINHERIT, 200)
  39. RELOC_NUMBER (R_VISIUM_GNU_VTENTRY, 201)
  40. END_RELOC_NUMBERS(R_VISIUM_max)
  41. #endif /* _ELF_VISIUM_H */