1 /* obj.h - defines the object dependent hooks for all object
4 Copyright 1987, 1990, 1991, 1992, 1993, 1995, 1996, 1997, 1999, 2000,
5 2002, 2003, 2004 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)
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, 51 Franklin Street - Fifth Floor, Boston, MA
24 char *obj_default_output_file_name (void);
25 void obj_emit_relocations (char **where
, fixS
* fixP
,
26 relax_addressT segment_address_in_file
);
27 void obj_emit_strings (char **where
);
28 void obj_emit_symbols (char **where
, symbolS
* symbols
);
29 #ifndef obj_read_begin_hook
30 void obj_read_begin_hook (void);
33 void obj_crawl_symbol_chain (object_headers
* headers
);
34 void obj_header_append (char **where
, object_headers
* headers
);
35 #ifndef obj_pre_write_hook
36 void obj_pre_write_hook (object_headers
* headers
);
40 #ifndef obj_symbol_new_hook
41 void obj_symbol_new_hook (symbolS
* symbolP
);
44 void obj_symbol_to_chars (char **where
, symbolS
* symbolP
);
46 extern const pseudo_typeS obj_pseudo_table
[];
51 unsigned dfl_leading_underscore
: 1;
52 unsigned emit_section_symbols
: 1;
54 void (*app_file
) (const char *, int);
55 void (*frob_symbol
) (symbolS
*, int *);
56 void (*frob_file
) (void);
57 void (*frob_file_before_adjust
) (void);
58 void (*frob_file_before_fix
) (void);
59 void (*frob_file_after_relocs
) (void);
60 bfd_vma (*s_get_size
) (symbolS
*);
61 void (*s_set_size
) (symbolS
*, bfd_vma
);
62 bfd_vma (*s_get_align
) (symbolS
*);
63 void (*s_set_align
) (symbolS
*, bfd_vma
);
64 int (*s_get_other
) (symbolS
*);
65 void (*s_set_other
) (symbolS
*, int);
66 int (*s_get_desc
) (symbolS
*);
67 void (*s_set_desc
) (symbolS
*, int);
68 int (*s_get_type
) (symbolS
*);
69 void (*s_set_type
) (symbolS
*, int);
70 void (*copy_symbol_attributes
) (symbolS
*, symbolS
*);
71 void (*generate_asm_lineno
) (void);
72 void (*process_stab
) (segT
, int, const char *, int, int, int);
73 int (*separate_stab_sections
) (void);
74 void (*init_stab_section
) (segT
);
75 int (*sec_sym_ok_for_reloc
) (asection
*);
76 void (*pop_insert
) (void);
77 /* For configurations using ECOFF_DEBUGGING, this callback is used. */
78 void (*ecoff_set_ext
) (symbolS
*, struct ecoff_extr
*);
80 void (*read_begin_hook
) (void);
81 void (*symbol_new_hook
) (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
;
90 COMMON
const struct format_ops
*this_format
;