we32k.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* coff information for we32k
  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 2
  16. #include "coff/external.h"
  17. /* Bits for f_flags:
  18. F_RELFLG relocation info stripped from file
  19. F_EXEC file is executable (no unresolved external references)
  20. F_LNNO line numbers stripped from file
  21. F_LSYMS local symbols stripped from file
  22. F_AR32WR file has byte ordering of an AR32WR machine (e.g. vax). */
  23. #define F_RELFLG (0x0001)
  24. #define F_EXEC (0x0002)
  25. #define F_LNNO (0x0004)
  26. #define F_LSYMS (0x0008)
  27. #define F_BM32B (0020000)
  28. #define F_BM32MAU (0040000)
  29. #define WE32KMAGIC 0x170 /* we32k sans transfer vector */
  30. #define FBOMAGIC 0x170 /* we32k sans transfer vector */
  31. #define MTVMAGIC 0x171 /* we32k with transfer vector */
  32. #define RBOMAGIC 0x172 /* reserved */
  33. #define WE32KBADMAG(x) ( ((x).f_magic != WE32KMAGIC) \
  34. && ((x).f_magic != FBOMAGIC) \
  35. && ((x).f_magic != RBOMAGIC) \
  36. && ((x).f_magic != MTVMAGIC))
  37. /* More names of "special" sections. */
  38. #define _TV ".tv"
  39. #define _INIT ".init"
  40. #define _FINI ".fini"
  41. /********************** RELOCATION DIRECTIVES **********************/
  42. struct external_reloc
  43. {
  44. char r_vaddr[4];
  45. char r_symndx[4];
  46. char r_type[2];
  47. };
  48. #define RELOC struct external_reloc
  49. #define RELSZ 10