home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Atari / Gnu / gassrc04.zoo / sparc.h < prev    next >
C/C++ Source or Header  |  1991-01-24  |  2KB  |  53 lines

  1. /* sparc.h -- Header file for the SPARC
  2.    Copyright (C) 1989 Free Software Foundation, Inc.
  3.  
  4. This file is 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. /*
  21.  * The following enum and struct were borrowed from
  22.  * sunOS  /usr/include/sun4/a.out.h
  23.  *
  24.  */
  25.  
  26. enum reloc_type
  27. {
  28.     RELOC_8,        RELOC_16,        RELOC_32,       RELOC_DISP8,
  29.     RELOC_DISP16,   RELOC_DISP32,    RELOC_WDISP30,  RELOC_WDISP22,
  30.     RELOC_HI22,     RELOC_22,        RELOC_13,       RELOC_LO10,
  31.     RELOC_SFA_BASE, RELOC_SFA_OFF13, RELOC_BASE10,   RELOC_BASE13,
  32.     RELOC_BASE22,   RELOC_PC10,      RELOC_PC22,     RELOC_JMP_TBL,
  33.     RELOC_SEGOFF16, RELOC_GLOB_DAT,  RELOC_JMP_SLOT, RELOC_RELATIVE,
  34.  
  35.     NO_RELOC
  36. };
  37.  
  38. struct reloc_info_sparc
  39. {
  40.     unsigned long int r_address;
  41. /*
  42.  * Using bit fields here is a bad idea because the order is not portable. :-(
  43.  */
  44.     unsigned int r_index    : 24;
  45.     unsigned int r_extern   : 1;
  46.     unsigned int unused     : 2;
  47.     enum reloc_type r_type  : 5;
  48.     long int r_addend;
  49. };
  50.  
  51. #define relocation_info reloc_info_sparc
  52.  
  53.