initialize_objfile_symbol: Renamed from initialize_symbol.
[deliverable/binutils-gdb.git] / gas / obj.h
CommitLineData
252b5132
RH
1/* obj.h - defines the object dependent hooks for all object
2 format backends.
3
4b95cf5c 4 Copyright (C) 1987-2014 Free Software Foundation, Inc.
252b5132
RH
5
6 This file is part of GAS, the GNU Assembler.
7
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
ec2655a6 10 the Free Software Foundation; either version 3, or (at your option)
252b5132
RH
11 any later version.
12
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.
17
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 the Free
4b4da160
NC
20 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
21 02110-1301, USA. */
252b5132 22
24361518
KH
23char *obj_default_output_file_name (void);
24void obj_emit_relocations (char **where, fixS * fixP,
25 relax_addressT segment_address_in_file);
26void obj_emit_strings (char **where);
27void obj_emit_symbols (char **where, symbolS * symbols);
252b5132 28#ifndef obj_read_begin_hook
24361518 29void obj_read_begin_hook (void);
252b5132 30#endif
252b5132
RH
31
32#ifndef obj_symbol_new_hook
24361518 33void obj_symbol_new_hook (symbolS * symbolP);
252b5132
RH
34#endif
35
24361518 36void obj_symbol_to_chars (char **where, symbolS * symbolP);
252b5132
RH
37
38extern const pseudo_typeS obj_pseudo_table[];
39
252b5132
RH
40struct format_ops {
41 int flavor;
42 unsigned dfl_leading_underscore : 1;
43 unsigned emit_section_symbols : 1;
24361518 44 void (*begin) (void);
c04f5787 45 void (*app_file) (const char *, int);
24361518
KH
46 void (*frob_symbol) (symbolS *, int *);
47 void (*frob_file) (void);
48 void (*frob_file_before_adjust) (void);
49 void (*frob_file_before_fix) (void);
50 void (*frob_file_after_relocs) (void);
51 bfd_vma (*s_get_size) (symbolS *);
52 void (*s_set_size) (symbolS *, bfd_vma);
53 bfd_vma (*s_get_align) (symbolS *);
54 void (*s_set_align) (symbolS *, bfd_vma);
55 int (*s_get_other) (symbolS *);
56 void (*s_set_other) (symbolS *, int);
57 int (*s_get_desc) (symbolS *);
58 void (*s_set_desc) (symbolS *, int);
59 int (*s_get_type) (symbolS *);
60 void (*s_set_type) (symbolS *, int);
61 void (*copy_symbol_attributes) (symbolS *, symbolS *);
62 void (*generate_asm_lineno) (void);
63 void (*process_stab) (segT, int, const char *, int, int, int);
64 int (*separate_stab_sections) (void);
65 void (*init_stab_section) (segT);
66 int (*sec_sym_ok_for_reloc) (asection *);
67 void (*pop_insert) (void);
252b5132 68 /* For configurations using ECOFF_DEBUGGING, this callback is used. */
24361518 69 void (*ecoff_set_ext) (symbolS *, struct ecoff_extr *);
252b5132 70
24361518
KH
71 void (*read_begin_hook) (void);
72 void (*symbol_new_hook) (symbolS *);
ec15ac50 73 void (*symbol_clone_hook) (symbolS *, symbolS *);
645ea3ea 74 void (*adjust_symtab) (void);
252b5132
RH
75};
76
77extern const struct format_ops elf_format_ops;
78extern const struct format_ops ecoff_format_ops;
79extern const struct format_ops coff_format_ops;
4c63da97 80extern const struct format_ops aout_format_ops;
252b5132
RH
81
82#ifndef this_format
83COMMON const struct format_ops *this_format;
84#endif
252b5132
RH
85
86/* end of obj.h */
This page took 0.61217 seconds and 4 git commands to generate.