home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Source / GNU / cctools / as / m88k.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-12  |  1.8 KB  |  58 lines

  1. /* m88k.h -- Assemble for the 88100
  2.    Copyright (C) 1989 Free Software Foundation, Inc.
  3.  
  4. This file is not yet part of GAS, the GNU Assembler.
  5.  
  6. GAS is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 1, or (at your option)
  9. any later version.
  10.  
  11. GAS is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GAS; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. #ifndef NeXT
  21. /* different type of relocation available in the m88k */
  22.  
  23. enum reloc_type
  24. {
  25.   RELOC_LO16,            /* lo16(sym) for zero fill immediates */
  26.   RELOC_HI16,            /* hi16(sym) */
  27.   RELOC_PC16,            /* bb0, bb1, bcnd */
  28.   RELOC_PC26,            /* br, bsr */
  29.   RELOC_32,            /* jump tables, etc */
  30.   RELOC_IW16,            /* global access through linker regs 28 */
  31.   NO_RELOC
  32. };
  33.  
  34. struct reloc_info_m88k
  35. {
  36.     unsigned long int r_address;
  37.     unsigned int r_symbolnum: 24;
  38.     unsigned int r_extern   : 1;
  39.     unsigned int r_pad      : 3;
  40.     enum reloc_type r_type  : 4;
  41.     long int r_addend;
  42. };
  43.  
  44. #define relocation_info reloc_info_m88k
  45.  
  46. #else defined(NeXT)
  47. /*
  48.  * On the NeXT all of the relocation entries of all the machines are defined
  49.  * in reloc.h but to use GAS and not ifdef lots of code these macros are used.
  50.  */
  51. #define RELOC_VANILLA    M88K_RELOC_VANILLA
  52. #define RELOC_PC16    M88K_RELOC_PC16
  53. #define RELOC_PC26    M88K_RELOC_PC26
  54. #define RELOC_LO16    M88K_RELOC_LO16
  55. #define RELOC_HI16    M88K_RELOC_HI16
  56. #define NO_RELOC    0x10 /* out side the range of r_type:4 */
  57. #endif NeXT
  58.