lm32.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Lattice Mico32 ELF support for BFD.
  2. Copyright (C) 2008-2022 Free Software Foundation, Inc.
  3. Contributed by Jon Beniston <jon@beniston.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_LM32_H
  17. #define _ELF_LM32_H
  18. #include "elf/reloc-macros.h"
  19. /* Relocations. */
  20. START_RELOC_NUMBERS (elf_lm32_reloc_type)
  21. RELOC_NUMBER (R_LM32_NONE, 0)
  22. RELOC_NUMBER (R_LM32_8, 1)
  23. RELOC_NUMBER (R_LM32_16, 2)
  24. RELOC_NUMBER (R_LM32_32, 3)
  25. RELOC_NUMBER (R_LM32_HI16, 4)
  26. RELOC_NUMBER (R_LM32_LO16, 5)
  27. RELOC_NUMBER (R_LM32_GPREL16, 6)
  28. RELOC_NUMBER (R_LM32_CALL, 7)
  29. RELOC_NUMBER (R_LM32_BRANCH, 8)
  30. RELOC_NUMBER (R_LM32_GNU_VTINHERIT, 9)
  31. RELOC_NUMBER (R_LM32_GNU_VTENTRY, 10)
  32. RELOC_NUMBER (R_LM32_16_GOT, 11)
  33. RELOC_NUMBER (R_LM32_GOTOFF_HI16, 12)
  34. RELOC_NUMBER (R_LM32_GOTOFF_LO16, 13)
  35. RELOC_NUMBER (R_LM32_COPY, 14)
  36. RELOC_NUMBER (R_LM32_GLOB_DAT, 15)
  37. RELOC_NUMBER (R_LM32_JMP_SLOT, 16)
  38. RELOC_NUMBER (R_LM32_RELATIVE, 17)
  39. END_RELOC_NUMBERS (R_LM32_max)
  40. /* Processor specific flags for the ELF header e_flags field. */
  41. #define EF_LM32_MACH 0x00000001
  42. /* Various CPU types. */
  43. #define E_LM32_MACH 0x1
  44. #endif /* _ELF_LM32_H */