19990502 sourceware import
[deliverable/binutils-gdb.git] / gas / config / obj-multi.h
CommitLineData
252b5132
RH
1/* hi */
2
3#include "emul.h"
4#include "targ-cpu.h"
5
6#define OUTPUT_FLAVOR (this_format->flavor)
7#define obj_frob_symbol(S,P) (this_format->frob_symbol)(S,&(P))
8#define obj_frob_file (this_format->frob_file)
9#define obj_frob_file_after_relocs (this_format->frob_file_after_relocs)
10#define obj_ecoff_set_ext (this_format->ecoff_set_ext)
11#define obj_pop_insert (this_format->pop_insert)
12#define obj_read_begin_hook() (this_format->read_begin_hook?this_format->read_begin_hook():(void)0)
13#define obj_symbol_new_hook (this_format->symbol_new_hook)
14#define obj_sec_sym_ok_for_reloc (this_format->sec_sym_ok_for_reloc)
15#define S_GET_SIZE (this_format->s_get_size)
16#define S_SET_SIZE (this_format->s_set_size)
17#define S_GET_ALIGN (this_format->s_get_align)
18#define S_SET_ALIGN (this_format->s_set_align)
19#define OBJ_COPY_SYMBOL_ATTRIBUTES (this_format->copy_symbol_attributes)
20#define OBJ_PROCESS_STAB (this_format->process_stab)
21
22#if defined (OBJ_MAYBE_ECOFF) || (defined (OBJ_MAYBE_ELF) && defined (TC_MIPS))
23#define ECOFF_DEBUGGING 1
24#endif
25
26/* FIXME: What's the story here? Why do we have to define
27 OBJ_SYMFIELD_TYPE both here and in obj-elf.h? */
28#ifdef OBJ_MAYBE_ELF
29struct elf_obj_sy
30{
31 expressionS *size;
32 char *versioned_name;
33};
34#define OBJ_SYMFIELD_TYPE struct elf_obj_sy
35#define ELF_TARGET_SYMBOL_FIELDS int local:1;
36#else
37#define ELF_TARGET_SYMBOL_FIELDS
38#endif
39
40#ifdef ECOFF_DEBUGGING
41struct efdr;
42struct localsym;
43#define ECOFF_DEBUG_TARGET_SYMBOL_FIELDS struct efdr *ecoff_file; struct localsym *ecoff_symbol; valueT ecoff_extern_size;
44#else
45#define ECOFF_DEBUG_TARGET_SYMBOL_FIELDS
46#endif
47
48#define TARGET_SYMBOL_FIELDS \
49 ELF_TARGET_SYMBOL_FIELDS \
50 ECOFF_DEBUG_TARGET_SYMBOL_FIELDS
This page took 0.024896 seconds and 4 git commands to generate.