OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.20.1/] [gas/] [config/] [obj-ecoff.h] - Blame information for rev 297

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 205 julius
/* 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>.
6
 
7
   This file is part of GAS.
8
 
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.
13
 
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.
18
 
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.  */
23
 
24
#define OBJ_ECOFF 1
25
 
26
/* Use the generic ECOFF debugging code.  */
27
#define ECOFF_DEBUGGING 1
28
 
29
#define OUTPUT_FLAVOR bfd_target_ecoff_flavour
30
 
31
#include "targ-cpu.h"
32
 
33
#include "ecoff.h"
34
 
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).  */
39
 
40
struct ecoff_sy_obj
41
{
42
  struct efdr *ecoff_file;
43
  struct localsym *ecoff_symbol;
44
  valueT ecoff_extern_size;
45
};
46
 
47
#define OBJ_SYMFIELD_TYPE struct ecoff_sy_obj
48
 
49
/* Modify the ECOFF symbol.  */
50
#define obj_frob_symbol(symp, punt) ecoff_frob_symbol (symp)
51
 
52
/* Set section VMAs and GP.  */
53
#define obj_frob_file_before_fix() ecoff_frob_file_before_fix ()
54
 
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 ()
58
 
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
62
 
63
/* Record file switches in the ECOFF symbol table.  */
64
#define obj_app_file(name, app) ecoff_new_file (name, app)
65
 
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))
69
 
70
#define EMIT_SECTION_SYMBOLS            0
71
#define obj_sec_sym_ok_for_reloc(SEC)   1
72
 
73
#define obj_ecoff_set_ext ecoff_set_ext
74
 
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 *);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.