12159047fSniklas /* SOM object file format. 2*b55d4692Sfgsch Copyright 1993, 1994, 1995, 1998, 2000 Free Software Foundation, Inc. 32159047fSniklas 42159047fSniklas This file is part of GAS, the GNU Assembler. 52159047fSniklas 62159047fSniklas GAS is free software; you can redistribute it and/or modify 72159047fSniklas it under the terms of the GNU General Public License as published by 82159047fSniklas the Free Software Foundation; either version 1, or (at your option) 92159047fSniklas any later version. 102159047fSniklas 112159047fSniklas GAS is distributed in the hope that it will be useful, 122159047fSniklas but WITHOUT ANY WARRANTY; without even the implied warranty of 132159047fSniklas MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 142159047fSniklas GNU General Public License for more details. 152159047fSniklas 162159047fSniklas You should have received a copy of the GNU General Public License 17f7cc78ecSespie along with GAS; see the file COPYING. If not, write to the Free 18f7cc78ecSespie Software Foundation, 59 Temple Place - Suite 330, Boston, MA 19f7cc78ecSespie 02111-1307, USA. 202159047fSniklas 212159047fSniklas Written by the Center for Software Science at the University of Utah 222159047fSniklas and by Cygnus Support. */ 232159047fSniklas 242159047fSniklas #ifndef _OBJ_SOM_H 252159047fSniklas #define _OBJ_SOM_H 262159047fSniklas 272159047fSniklas #define OBJ_SOM 1 282159047fSniklas 29*b55d4692Sfgsch #include "bfd.h" 302159047fSniklas #include "bfd/som.h" 312159047fSniklas #include "targ-cpu.h" 322159047fSniklas 332159047fSniklas #ifndef FALSE 342159047fSniklas #define FALSE 0 352159047fSniklas #define TRUE !FALSE 362159047fSniklas #endif 372159047fSniklas 382159047fSniklas /* should be conditional on address size! */ 392159047fSniklas #define som_symbol(asymbol) ((som_symbol_type *) (&(asymbol)->the_bfd)) 402159047fSniklas 412159047fSniklas extern void som_file_symbol PARAMS ((char *)); 422159047fSniklas extern void obj_som_version PARAMS ((int)); 432159047fSniklas extern void obj_som_init_stab_section PARAMS ((segT)); 44f7cc78ecSespie extern void obj_som_copyright PARAMS ((int)); 45f7cc78ecSespie extern void obj_som_compiler PARAMS ((int)); 462159047fSniklas 472159047fSniklas #define obj_symbol_new_hook(s) {;} 482159047fSniklas 492159047fSniklas /* SOM has several attributes for spaces/subspaces which can not 502159047fSniklas be easily expressed in BFD. We use these macros to trigger calls 512159047fSniklas into the SOM BFD backend to set these attributes. */ 522159047fSniklas #define obj_set_section_attributes bfd_som_set_section_attributes 532159047fSniklas #define obj_set_subsection_attributes bfd_som_set_subsection_attributes 542159047fSniklas 552159047fSniklas /* Likewise for symbol types. */ 562159047fSniklas #define obj_set_symbol_type bfd_som_set_symbol_type 572159047fSniklas 582159047fSniklas /* Stabs go in a separate sections. GDB expects to find them in sections 592159047fSniklas with the names $GDB_SYMBOLS$ and $GDB_STRINGS$ rather than .stab and 602159047fSniklas .stabstr. */ 612159047fSniklas #define SEPARATE_STAB_SECTIONS 1 622159047fSniklas #define STAB_SECTION_NAME "$GDB_SYMBOLS$" 632159047fSniklas #define STAB_STRING_SECTION_NAME "$GDB_STRINGS$" 642159047fSniklas 652159047fSniklas /* We use INIT_STAB_SECTION to record the space/subspace relationships 662159047fSniklas for the various debugging sections. */ 672159047fSniklas #define INIT_STAB_SECTION(seg) obj_som_init_stab_section (seg) 682159047fSniklas 692159047fSniklas /* We'll be updating the magic 1st stab entry once the entire assembly 702159047fSniklas fail has been processed. */ 712159047fSniklas #define obj_frob_file() som_frob_file() 722159047fSniklas 732159047fSniklas #endif /* _OBJ_SOM_H */ 74