[PATCH, COMMITTED] [AArch64] Replace the :got_prel19: address modifier with :got:
[deliverable/binutils-gdb.git] / gas / config / obj-ecoff.h
CommitLineData
252b5132 1/* ECOFF object file format header file.
ec2655a6 2 Copyright 1993, 1994, 1995, 1996, 1997, 1999, 2002, 2004, 2005,
4cae74aa 3 2007, 2009 Free Software Foundation, Inc.
252b5132
RH
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
ec2655a6 11 the Free Software Foundation; either version 3, or (at your option)
252b5132
RH
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
4b4da160
NC
21 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
22 02110-1301, USA. */
252b5132
RH
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
49309057
ILT
40struct ecoff_sy_obj
41{
42 struct efdr *ecoff_file;
43 struct localsym *ecoff_symbol;
252b5132 44 valueT ecoff_extern_size;
49309057
ILT
45};
46
47#define OBJ_SYMFIELD_TYPE struct ecoff_sy_obj
252b5132
RH
48
49/* Modify the ECOFF symbol. */
50#define obj_frob_symbol(symp, punt) ecoff_frob_symbol (symp)
51
a161fe53 52/* Set section VMAs and GP. */
a161fe53
AM
53#define obj_frob_file_before_fix() ecoff_frob_file_before_fix ()
54
252b5132
RH
55/* This is used to write the symbolic data in the format that BFD
56 expects it. */
252b5132
RH
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
4cae74aa 62#define obj_symbol_clone_hook ecoff_symbol_clone_hook
252b5132
RH
63
64/* Record file switches in the ECOFF symbol table. */
f17c130b 65#define obj_app_file(name, app) ecoff_new_file (name, app)
252b5132
RH
66
67/* At the moment we don't want to do any stabs processing in read.c. */
68#define OBJ_PROCESS_STAB(seg, what, string, type, other, desc) \
69 ecoff_stab ((seg), (what), (string), (type), (other), (desc))
70
71#define EMIT_SECTION_SYMBOLS 0
72#define obj_sec_sym_ok_for_reloc(SEC) 1
73
74#define obj_ecoff_set_ext ecoff_set_ext
ea1562b3
NC
75
76extern void ecoff_frob_file_before_fix (void);
77extern void ecoff_frob_file (void);
78extern void obj_ecoff_set_ext (symbolS *, EXTR *);
This page took 0.582016 seconds and 4 git commands to generate.