sparc.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* sparc.h -- Header file for the SPARC
  2. Copyright (C) 1989 Free Software Foundation, Inc.
  3. This file is part of GAS, the GNU Assembler.
  4. GAS 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 1, or (at your option)
  7. any later version.
  8. GAS 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 GAS; see the file COPYING. If not, write to
  14. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. /*
  16. * The following enum and struct were borrowed from
  17. * sunOS /usr/include/sun4/a.out.h
  18. *
  19. */
  20. enum reloc_type
  21. {
  22. RELOC_8, RELOC_16, RELOC_32, RELOC_DISP8,
  23. RELOC_DISP16, RELOC_DISP32, RELOC_WDISP30, RELOC_WDISP22,
  24. RELOC_HI22, RELOC_22, RELOC_13, RELOC_LO10,
  25. RELOC_SFA_BASE, RELOC_SFA_OFF13, RELOC_BASE10, RELOC_BASE13,
  26. RELOC_BASE22, RELOC_PC10, RELOC_PC22, RELOC_JMP_TBL,
  27. RELOC_SEGOFF16, RELOC_GLOB_DAT, RELOC_JMP_SLOT, RELOC_RELATIVE,
  28. NO_RELOC
  29. };
  30. struct reloc_info_sparc
  31. {
  32. unsigned long int r_address;
  33. /*
  34. * Using bit fields here is a bad idea because the order is not portable. :-(
  35. */
  36. unsigned int r_index : 24;
  37. unsigned int r_extern : 1;
  38. unsigned int unused : 2;
  39. enum reloc_type r_type : 5;
  40. long int r_addend;
  41. };
  42. #define relocation_info reloc_info_sparc