1 /* SOM object file format.
2 Copyright (C) 1993, 1994, 1995, 1998 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
6 GAS is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 1, or (at your option)
11 GAS is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GAS; see the file COPYING. If not, write to the Free
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
21 Written by the Center for Software Science at the University of Utah
22 and by Cygnus Support. */
38 /* should be conditional on address size! */
39 #define som_symbol(asymbol) ((som_symbol_type *)(&(asymbol)->the_bfd))
41 extern void som_file_symbol
PARAMS ((char *));
42 extern void obj_som_version
PARAMS ((int));
43 extern void obj_som_init_stab_section
PARAMS ((segT
));
44 extern void obj_som_copyright
PARAMS ((int));
45 extern void obj_som_compiler
PARAMS ((int));
47 #define obj_symbol_new_hook(s) {;}
49 /* SOM has several attributes for spaces/subspaces which can not
50 be easily expressed in BFD. We use these macros to trigger calls
51 into the SOM BFD backend to set these attributes. */
52 #define obj_set_section_attributes bfd_som_set_section_attributes
53 #define obj_set_subsection_attributes bfd_som_set_subsection_attributes
55 /* Likewise for symbol types. */
56 #define obj_set_symbol_type bfd_som_set_symbol_type
58 /* Stabs go in a separate sections. GDB expects to find them in sections
59 with the names $GDB_SYMBOLS$ and $GDB_STRINGS$ rather than .stab and
61 #define SEPARATE_STAB_SECTIONS 1
62 #define STAB_SECTION_NAME "$GDB_SYMBOLS$"
63 #define STAB_STRING_SECTION_NAME "$GDB_STRINGS$"
65 /* We use INIT_STAB_SECTION to record the space/subspace relationships
66 for the various debugging sections. */
67 #define INIT_STAB_SECTION(seg) obj_som_init_stab_section (seg)
69 /* We'll be updating the magic 1st stab entry once the entire assembly
70 fail has been processed. */
71 #define obj_frob_file() som_frob_file()
73 #endif /* _OBJ_SOM_H */