Set OSABI field back to 0 (SysV), to avoid interoperability problems
[nacl-binutils.git] / gas / config / obj-ecoff.h
blobfae84ae90c2c7a2afc836737fa2d13854b5187fc
1 /* ECOFF object file format header file.
2 Copyright 1993, 1994, 1995, 1996, 1997, 1999, 2002, 2004, 2005,
3 2007 Free Software Foundation, Inc.
4 Contributed by Cygnus Support.
5 Written by Ian Lance Taylor <ian@cygnus.com>.
7 This file is part of GAS.
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 3, 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, 51 Franklin Street - Fifth Floor, Boston, MA
22 02110-1301, USA. */
24 #define OBJ_ECOFF 1
26 /* Use the generic ECOFF debugging code. */
27 #define ECOFF_DEBUGGING 1
29 #define OUTPUT_FLAVOR bfd_target_ecoff_flavour
31 #include "targ-cpu.h"
33 #include "ecoff.h"
35 /* For each gas symbol we keep track of which file it came from, of
36 whether we have generated an ECOFF symbol for it, and whether the
37 symbols is undefined (this last is needed to distinguish a .extern
38 symbols from a .comm symbol). */
40 struct ecoff_sy_obj
42 struct efdr *ecoff_file;
43 struct localsym *ecoff_symbol;
44 valueT ecoff_extern_size;
47 #define OBJ_SYMFIELD_TYPE struct ecoff_sy_obj
49 /* Modify the ECOFF symbol. */
50 #define obj_frob_symbol(symp, punt) ecoff_frob_symbol (symp)
52 /* Set section VMAs and GP. */
53 #define obj_frob_file_before_fix() ecoff_frob_file_before_fix ()
55 /* This is used to write the symbolic data in the format that BFD
56 expects it. */
57 #define obj_frob_file() ecoff_frob_file ()
59 /* We use the ECOFF functions as our hooks. */
60 #define obj_read_begin_hook ecoff_read_begin_hook
61 #define obj_symbol_new_hook ecoff_symbol_new_hook
63 /* Record file switches in the ECOFF symbol table. */
64 #define obj_app_file(name, app) ecoff_new_file (name, app)
66 /* At the moment we don't want to do any stabs processing in read.c. */
67 #define OBJ_PROCESS_STAB(seg, what, string, type, other, desc) \
68 ecoff_stab ((seg), (what), (string), (type), (other), (desc))
70 #define EMIT_SECTION_SYMBOLS 0
71 #define obj_sec_sym_ok_for_reloc(SEC) 1
73 #define obj_ecoff_set_ext ecoff_set_ext
75 extern void ecoff_frob_file_before_fix (void);
76 extern void ecoff_frob_file (void);
77 extern void obj_ecoff_set_ext (symbolS *, EXTR *);