* Fix for endianness bugs in tx39 sio sim.
[binutils-gdb.git] / gas / obj.h
blobe3d45c26c09ef3907e9a159eeaff5227a9bd112b
1 /* obj.h - defines the object dependent hooks for all object
2 format backends.
4 Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
6 This file is part of GAS, the GNU Assembler.
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GAS; see the file COPYING. If not, write to
20 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
22 char *obj_default_output_file_name PARAMS ((void));
23 void obj_emit_relocations PARAMS ((char **where, fixS * fixP,
24 relax_addressT segment_address_in_file));
25 void obj_emit_strings PARAMS ((char **where));
26 void obj_emit_symbols PARAMS ((char **where, symbolS * symbols));
27 void obj_read_begin_hook PARAMS ((void));
28 #ifndef BFD_ASSEMBLER
29 void obj_crawl_symbol_chain PARAMS ((object_headers * headers));
30 void obj_header_append PARAMS ((char **where, object_headers * headers));
31 #ifndef obj_pre_write_hook
32 void obj_pre_write_hook PARAMS ((object_headers * headers));
33 #endif
34 #endif
36 #ifndef obj_symbol_new_hook
37 void obj_symbol_new_hook PARAMS ((symbolS * symbolP));
38 #endif
40 void obj_symbol_to_chars PARAMS ((char **where, symbolS * symbolP));
42 extern const pseudo_typeS obj_pseudo_table[];
44 #ifdef BFD_ASSEMBLER
45 struct format_ops {
46 int flavor;
47 unsigned char dfl_leading_underscore : 1;
48 unsigned char emit_section_symbols : 1;
49 void (*frob_symbol) PARAMS ((symbolS *, int *));
50 void (*frob_file) PARAMS ((void));
51 bfd_vma (*s_get_size) PARAMS ((symbolS *));
52 void (*s_set_size) PARAMS ((symbolS *, bfd_vma));
53 bfd_vma (*s_get_align) PARAMS ((symbolS *));
54 void (*s_set_align) PARAMS ((symbolS *, bfd_vma));
55 void (*copy_symbol_attributes) PARAMS ((symbolS *, symbolS *));
56 void (*generate_asm_lineno) PARAMS ((const char *, int));
57 void (*process_stab) (/* what, string, type, other, desc */);
58 int (*sec_sym_ok_for_reloc) PARAMS ((asection *));
59 void (*pop_insert) PARAMS ((void));
62 #ifndef this_format
63 COMMON const struct format_ops *this_format;
64 #endif
65 #endif
67 /* end of obj.h */