file as.info-12 was initially added on branch binutils-2_14-branch.
[binutils.git] / gas / obj.h
blobf7c1217f8ef2bcb6efc0e425619ed9aec9382d66
1 /* obj.h - defines the object dependent hooks for all object
2 format backends.
4 Copyright 1987, 1990, 1991, 1992, 1993, 1995, 1996, 1997, 1999, 2000, 2002
5 Free Software Foundation, Inc.
7 This file is part of GAS, the GNU Assembler.
9 GAS is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
14 GAS is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with GAS; see the file COPYING. If not, write to the Free
21 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 02111-1307, USA. */
24 char *obj_default_output_file_name PARAMS ((void));
25 void obj_emit_relocations PARAMS ((char **where, fixS * fixP,
26 relax_addressT segment_address_in_file));
27 void obj_emit_strings PARAMS ((char **where));
28 void obj_emit_symbols PARAMS ((char **where, symbolS * symbols));
29 #ifndef obj_read_begin_hook
30 void obj_read_begin_hook PARAMS ((void));
31 #endif
32 #ifndef BFD_ASSEMBLER
33 void obj_crawl_symbol_chain PARAMS ((object_headers * headers));
34 void obj_header_append PARAMS ((char **where, object_headers * headers));
35 #ifndef obj_pre_write_hook
36 void obj_pre_write_hook PARAMS ((object_headers * headers));
37 #endif
38 #endif
40 #ifndef obj_symbol_new_hook
41 void obj_symbol_new_hook PARAMS ((symbolS * symbolP));
42 #endif
44 void obj_symbol_to_chars PARAMS ((char **where, symbolS * symbolP));
46 extern const pseudo_typeS obj_pseudo_table[];
48 #ifdef BFD_ASSEMBLER
49 struct format_ops {
50 int flavor;
51 unsigned dfl_leading_underscore : 1;
52 unsigned emit_section_symbols : 1;
53 void (*begin) PARAMS ((void));
54 void (*app_file) PARAMS ((const char *));
55 void (*frob_symbol) PARAMS ((symbolS *, int *));
56 void (*frob_file) PARAMS ((void));
57 void (*frob_file_before_adjust) PARAMS ((void));
58 void (*frob_file_before_fix) PARAMS ((void));
59 void (*frob_file_after_relocs) PARAMS ((void));
60 bfd_vma (*s_get_size) PARAMS ((symbolS *));
61 void (*s_set_size) PARAMS ((symbolS *, bfd_vma));
62 bfd_vma (*s_get_align) PARAMS ((symbolS *));
63 void (*s_set_align) PARAMS ((symbolS *, bfd_vma));
64 int (*s_get_other) PARAMS ((symbolS *));
65 void (*s_set_other) PARAMS ((symbolS *, int));
66 int (*s_get_desc) PARAMS ((symbolS *));
67 void (*s_set_desc) PARAMS ((symbolS *, int));
68 int (*s_get_type) PARAMS ((symbolS *));
69 void (*s_set_type) PARAMS ((symbolS *, int));
70 void (*copy_symbol_attributes) PARAMS ((symbolS *, symbolS *));
71 void (*generate_asm_lineno) PARAMS ((void));
72 void (*process_stab) PARAMS ((segT, int, const char *, int, int, int));
73 int (*separate_stab_sections) PARAMS ((void));
74 void (*init_stab_section) PARAMS ((segT));
75 int (*sec_sym_ok_for_reloc) PARAMS ((asection *));
76 void (*pop_insert) PARAMS ((void));
77 /* For configurations using ECOFF_DEBUGGING, this callback is used. */
78 void (*ecoff_set_ext) PARAMS ((symbolS *, struct ecoff_extr *));
80 void (*read_begin_hook) PARAMS ((void));
81 void (*symbol_new_hook) PARAMS ((symbolS *));
84 extern const struct format_ops elf_format_ops;
85 extern const struct format_ops ecoff_format_ops;
86 extern const struct format_ops coff_format_ops;
87 extern const struct format_ops aout_format_ops;
89 #ifndef this_format
90 COMMON const struct format_ops *this_format;
91 #endif
92 #endif
94 /* end of obj.h */