tic4x.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* TI COFF information for Texas Instruments TMS320C4X/C3X.
  2. This file customizes the settings in coff/ti.h.
  3. Copyright (C) 2002-2015 Free Software Foundation, Inc.
  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
  14. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. #ifndef COFF_TIC4X_H
  17. #define COFF_TIC4X_H
  18. #define TIC4X_TARGET_ID 0x0093
  19. /* Octets per byte, as a power of two. */
  20. #define TI_TARGET_ID TIC4X_TARGET_ID
  21. #define OCTETS_PER_BYTE_POWER 2
  22. /* Add to howto to get absolute/sect-relative version. */
  23. #define HOWTO_BANK 6
  24. #define TICOFF_TARGET_ARCH bfd_arch_tic4x
  25. /* We use COFF2. */
  26. #define TICOFF_DEFAULT_MAGIC TICOFF2MAGIC
  27. #define TICOFF_TARGET_MACHINE_GET(FLAGS) \
  28. (((FLAGS) & F_VERS) ? bfd_mach_tic4x : bfd_mach_tic3x)
  29. #define TICOFF_TARGET_MACHINE_SET(FLAGSP, MACHINE) \
  30. do \
  31. { \
  32. if ((MACHINE) == bfd_mach_tic4x) \
  33. *(FLAGSP) |= F_VERS; \
  34. } \
  35. while (0)
  36. #include "coff/ti.h"
  37. #endif /* COFF_TIC4X_H */