Add Intel AVX-512 support
[deliverable/binutils-gdb.git] / gas / config / obj-som.h
CommitLineData
252b5132 1/* SOM object file format.
ec2655a6 2 Copyright 1993, 1994, 1995, 1998, 2000, 2004, 2005, 2006, 2007
aef6203b 3 Free Software Foundation, Inc.
252b5132
RH
4
5 This file is part of GAS, the GNU Assembler.
6
7 GAS is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
ec2655a6 9 the Free Software Foundation; either version 3, or (at your option)
252b5132
RH
10 any later version.
11
12 GAS is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GAS; see the file COPYING. If not, write to the Free
4b4da160
NC
19 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
20 02110-1301, USA.
252b5132
RH
21
22 Written by the Center for Software Science at the University of Utah
23 and by Cygnus Support. */
24
25#ifndef _OBJ_SOM_H
26#define _OBJ_SOM_H
27
28#define OBJ_SOM 1
29
252b5132 30#include "bfd/som.h"
e1f000f6 31#include "som/reloc.h"
252b5132
RH
32#include "targ-cpu.h"
33
34#ifndef FALSE
35#define FALSE 0
36#define TRUE !FALSE
37#endif
38
39/* should be conditional on address size! */
814f6641 40#define som_symbol(asymbol) ((som_symbol_type *) (&(asymbol)->the_bfd))
252b5132 41
ea1562b3
NC
42extern void som_file_symbol (char *);
43extern void som_frob_file (void);
44extern void obj_som_version (int);
45extern void obj_som_init_stab_section (segT);
46extern void obj_som_copyright (int);
47extern void obj_som_compiler (int);
252b5132
RH
48
49#define obj_symbol_new_hook(s) {;}
50
51/* SOM has several attributes for spaces/subspaces which can not
52 be easily expressed in BFD. We use these macros to trigger calls
53 into the SOM BFD backend to set these attributes. */
54#define obj_set_section_attributes bfd_som_set_section_attributes
55#define obj_set_subsection_attributes bfd_som_set_subsection_attributes
56
57/* Likewise for symbol types. */
58#define obj_set_symbol_type bfd_som_set_symbol_type
59
60/* Stabs go in a separate sections. GDB expects to find them in sections
61 with the names $GDB_SYMBOLS$ and $GDB_STRINGS$ rather than .stab and
62 .stabstr. */
63#define SEPARATE_STAB_SECTIONS 1
64#define STAB_SECTION_NAME "$GDB_SYMBOLS$"
65#define STAB_STRING_SECTION_NAME "$GDB_STRINGS$"
66
67/* We use INIT_STAB_SECTION to record the space/subspace relationships
68 for the various debugging sections. */
69#define INIT_STAB_SECTION(seg) obj_som_init_stab_section (seg)
70
71/* We'll be updating the magic 1st stab entry once the entire assembly
72 fail has been processed. */
73#define obj_frob_file() som_frob_file()
74
75#endif /* _OBJ_SOM_H */
This page took 0.57093 seconds and 4 git commands to generate.