* ecoff.c (ecoff_frob_symbol): New function. Put undefined
[external/binutils.git] / gas / config / obj-ecoff.h
1 /* ECOFF object file format header file.
2    Copyright (C) 1993 Free Software Foundation, Inc.
3    Contributed by Cygnus Support.
4    Written by Ian Lance Taylor <ian@cygnus.com>.
5
6    This file is part of GAS.
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
10    the Free Software Foundation; either version 2, or (at your option)
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
20    the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
21
22 #define OBJ_ECOFF 1
23
24 /* Use the generic ECOFF debugging code.  */
25 #define ECOFF_DEBUGGING
26
27 #include "targ-cpu.h"
28
29 #include "ecoff.h"
30
31 /* For each gas symbol we keep track of which file it came from, of
32    whether we have generated an ECOFF symbol for it, and whether the
33    symbols is undefined (this last is needed to distinguish a .extern
34    symbols from a .comm symbol).  */
35
36 #define TARGET_SYMBOL_FIELDS \
37   struct efdr *ecoff_file; \
38   struct localsym *ecoff_symbol; \
39   char ecoff_undefined;
40
41 /* Modify the ECOFF symbol.  */
42 #define obj_frob_symbol(symp, punt) ecoff_frob_symbol (symp)
43
44 /* This is used to write the symbolic data in the format that BFD
45    expects it.  */
46 extern void ecoff_frob_file PARAMS ((void));
47 #define obj_frob_file() ecoff_frob_file ()
48
49 /* We use the ECOFF functions as our hooks.  */
50 #define obj_read_begin_hook ecoff_read_begin_hook
51 #define obj_symbol_new_hook ecoff_symbol_new_hook
52
53 /* At the moment we don't want to do any stabs processing in read.c.  */
54 #define OBJ_PROCESS_STAB(what, string, type, other, desc) \
55   ecoff_stab ((what), (string), (type), (other), (desc))