h8500.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* coff information for Renesas H8/500
  2. Copyright (C) 2001-2015 Free Software Foundation, Inc.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  14. MA 02110-1301, USA. */
  15. #define L_LNNO_SIZE 4
  16. #include "coff/external.h"
  17. #define H8500MAGIC 0x8500
  18. #define H8500BADMAG(x) ((0xffff && ((x).f_magic) != H8500MAGIC))
  19. /********************** RELOCATION DIRECTIVES **********************/
  20. /* The external reloc has an offset field, because some of the reloc
  21. types on the h8 don't have room in the instruction for the entire
  22. offset - eg the strange jump and high page addressing modes. */
  23. struct external_reloc
  24. {
  25. char r_vaddr[4];
  26. char r_symndx[4];
  27. char r_offset[4];
  28. char r_type[2];
  29. char r_stuff[2];
  30. };
  31. #define RELOC struct external_reloc
  32. #define RELSZ 16