* elf32-ppc.c (LWZU_0_X_11): Delete.
[binutils.git] / gas / config / obj-som.h
blob85f3f72bb4047a2d046f7265bce52804b87b5b33
1 /* SOM object file format.
2 Copyright 1993, 1994, 1995, 1998, 2000, 2004, 2005
3 Free Software Foundation, Inc.
5 This file is part of GAS, the GNU Assembler.
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
9 the Free Software Foundation; either version 1, or (at your option)
10 any later version.
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.
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
19 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
20 02110-1301, USA.
22 Written by the Center for Software Science at the University of Utah
23 and by Cygnus Support. */
25 #ifndef _OBJ_SOM_H
26 #define _OBJ_SOM_H
28 #define OBJ_SOM 1
30 #include "bfd.h"
31 #include "bfd/som.h"
32 #include "targ-cpu.h"
34 #ifndef FALSE
35 #define FALSE 0
36 #define TRUE !FALSE
37 #endif
39 /* should be conditional on address size! */
40 #define som_symbol(asymbol) ((som_symbol_type *) (&(asymbol)->the_bfd))
42 extern void som_file_symbol (char *);
43 extern void som_frob_file (void);
44 extern void obj_som_version (int);
45 extern void obj_som_init_stab_section (segT);
46 extern void obj_som_copyright (int);
47 extern void obj_som_compiler (int);
49 #define obj_symbol_new_hook(s) {;}
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
57 /* Likewise for symbol types. */
58 #define obj_set_symbol_type bfd_som_set_symbol_type
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$"
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)
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()
75 #endif /* _OBJ_SOM_H */