Commit | Line | Data |
---|---|---|
fecd2382 | 1 | /* tc-sparc.h - Macros and type defines for the sparc. |
2d97273c | 2 | Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc. |
355afbcd | 3 | |
a39116f1 | 4 | This file is part of GAS, the GNU Assembler. |
355afbcd | 5 | |
a39116f1 RP |
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. | |
355afbcd | 10 | |
a39116f1 RP |
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. | |
355afbcd | 15 | |
a39116f1 RP |
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. */ | |
fecd2382 | 19 | |
fecd2382 RP |
20 | #define TC_SPARC 1 |
21 | ||
a39116f1 RP |
22 | #define LOCAL_LABELS_FB |
23 | ||
25c09bbf KR |
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 | ||
fecd2382 | 45 | #ifdef OBJ_BOUT |
355afbcd | 46 | #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE ((0x103 << 16) | BMAGIC) /* Magic number for header */ |
fecd2382 RP |
47 | #else |
48 | #ifdef OBJ_AOUT | |
355afbcd | 49 | #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE ((0x103 << 16) | OMAGIC) /* Magic number for header */ |
fecd2382 RP |
50 | #endif /* OBJ_AOUT */ |
51 | #endif /* OBJ_BOUT */ | |
52 | ||
a39116f1 RP |
53 | #define AOUT_MACHTYPE 3 |
54 | ||
25c09bbf KR |
55 | #define NEED_FX_R_TYPE |
56 | ||
355afbcd KR |
57 | #define tc_headers_hook(a) {;} /* don't need it. */ |
58 | #define tc_crawl_symbol_chain(a) {;} /* don't need it. */ | |
2d97273c | 59 | |
25c09bbf KR |
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 | ||
355afbcd | 70 | void tc_aout_pre_write_hook (); |
2d97273c | 71 | |
a39116f1 | 72 | #define LISTING_HEADER "SPARC GAS " |
8b228fe9 | 73 | |
8b228fe9 | 74 | /* end of tc-sparc.h */ |