Define ENV64 for sparc v9.
[external/binutils.git] / gas / config / tc-sparc.h
1 /* tc-sparc.h - Macros and type defines for the sparc.
2    Copyright (C) 1989, 1990, 1991, 1992 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
8    published by the Free Software Foundation; either version 2,
9    or (at your option) any later version.
10
11    GAS is distributed in the hope that it will be useful, but
12    WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
14    the GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public
17    License along with GAS; see the file COPYING.  If not, write
18    to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20 #define TC_SPARC 1
21
22 #define LOCAL_LABELS_FB
23
24 #ifdef BFD_ASSEMBLER
25
26 #define TARGET_ARCH bfd_arch_sparc
27 #ifdef OBJ_AOUT
28 #define TARGET_FORMAT "a.out-sunos-big"
29 #endif
30 #ifdef OBJ_BOUT
31 #define TARGET_FORMAT "b.out.big"
32 #endif
33 #ifdef OBJ_ELF
34 #ifndef sparcv9
35 #define TARGET_FORMAT "elf32-sparc"
36 #else   /* sparcv9 */
37 #define TARGET_FORMAT "elf64-sparc" /* v9 */
38 #define ENV64                   /* v9 */
39 #endif  /* sparcv9 */
40 #define LOCAL_LABEL(name)       ((name)[0] == '.')
41 #endif
42
43 #else
44
45 #ifdef OBJ_BOUT
46 #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE ((0x103 << 16) | BMAGIC)   /* Magic number for header */
47 #else
48 #ifdef OBJ_AOUT
49 #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE ((0x103 << 16) | OMAGIC)   /* Magic number for header */
50 #endif /* OBJ_AOUT */
51 #endif /* OBJ_BOUT */
52
53 #define AOUT_MACHTYPE 3
54
55 #define NEED_FX_R_TYPE
56
57 #define tc_headers_hook(a)              {;}     /* don't need it. */
58 #define tc_crawl_symbol_chain(a)        {;}     /* don't need it. */
59
60 #define TC_CONS_RELOC RELOC_32
61
62 #endif /* BFD_ASSEMBLER */
63
64 #ifndef BFD_ASSEMBLER
65 #define md_convert_frag(h,f)            {as_fatal ("sparc convert_frag\n");}
66 #else
67 #define md_convert_frag(b,s,f)          {as_fatal ("sparc convert_frag\n");}
68 #endif
69
70 void tc_aout_pre_write_hook ();
71
72 #define LISTING_HEADER "SPARC GAS "
73
74 /* end of tc-sparc.h */