1 /* tc.h - target cpu dependent
3 Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
5 This file is part of GAS, the GNU Assembler.
7 GAS is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GAS is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GAS; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21 /* In theory (mine, at least!) the machine dependent part of the assembler
22 should only have to include one file. This one. -- JF */
24 extern const pseudo_typeS md_pseudo_table
[];
26 /* JF moved this here from as.h under the theory that nobody except MACHINE.c
27 and write.c care about it anyway. */
31 /* Forward reach. Signed number. > 0. */
33 /* Backward reach. Signed number. < 0. */
36 /* Bytes length of this address. */
37 unsigned char rlx_length
;
39 /* Next longer relax-state. 0 means there is no 'next' relax-state. */
40 relax_substateT rlx_more
;
43 typedef struct relax_type relax_typeS
;
45 extern const int md_reloc_size
; /* Size of a relocation record */
47 char *md_atof
PARAMS ((int what_statement_type
, char *literalP
, int *sizeP
));
48 #ifndef md_estimate_size_before_relax
49 int md_estimate_size_before_relax
PARAMS ((fragS
* fragP
, segT segment
));
51 int md_parse_option
PARAMS ((int c
, char *arg
));
52 void md_show_usage
PARAMS ((FILE *));
53 long md_pcrel_from
PARAMS ((fixS
* fixP
));
54 short tc_coff_fix2rtype
PARAMS ((fixS
* fixP
));
55 void md_assemble
PARAMS ((char *str
));
56 void md_begin
PARAMS ((void));
57 #ifndef md_create_long_jump
58 void md_create_long_jump
PARAMS ((char *ptr
, addressT from_addr
,
59 addressT to_addr
, fragS
* frag
,
60 symbolS
* to_symbol
));
62 #ifndef md_create_short_jump
63 void md_create_short_jump
PARAMS ((char *ptr
, addressT from_addr
,
64 addressT to_addr
, fragS
* frag
,
65 symbolS
* to_symbol
));
67 void md_number_to_chars
PARAMS ((char *buf
, valueT val
, int n
));
70 void md_operand
PARAMS ((expressionS
* expressionP
));
74 int md_apply_fix3
PARAMS ((fixS
* fixP
, valueT
*val
, segT seg
));
77 int md_apply_fix
PARAMS ((fixS
* fixP
, valueT
*val
));
78 #ifndef md_convert_frag
79 void md_convert_frag
PARAMS ((bfd
* headers
, segT sec
, fragS
* fragP
));
81 #ifndef tc_headers_hook
82 void tc_headers_hook
PARAMS ((segT
*, fixS
*));
84 #ifndef RELOC_EXPANSION_POSSIBLE
85 extern arelent
*tc_gen_reloc
PARAMS ((asection
*, fixS
*));
87 extern arelent
**tc_gen_reloc
PARAMS ((asection
*, fixS
*));
89 #else /* not BFD_ASSEMBLER */
90 void md_apply_fix
PARAMS ((fixS
* fixP
, long val
));
91 #ifndef md_convert_frag
92 void md_convert_frag
PARAMS ((object_headers
* headers
, segT
, fragS
* fragP
));
95 #ifndef tc_crawl_symbol_chain
96 void tc_crawl_symbol_chain
PARAMS ((object_headers
* headers
));
97 #endif /* tc_crawl_symbol_chain */
99 #ifndef tc_headers_hook
100 void tc_headers_hook
PARAMS ((object_headers
* headers
));
101 #endif /* tc_headers_hook */
102 #endif /* BFD_ASSEMBLER */
104 #ifndef md_section_align
105 valueT md_section_align
PARAMS ((segT seg
, valueT size
));
108 #ifndef md_undefined_symbol
109 symbolS
*md_undefined_symbol
PARAMS ((char *name
));