OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gas/] [config/] [obj-som.h] - Diff between revs 156 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 156 Rev 816
/* SOM object file format.
/* SOM object file format.
   Copyright 1993, 1994, 1995, 1998, 2000, 2004, 2005, 2006, 2007
   Copyright 1993, 1994, 1995, 1998, 2000, 2004, 2005, 2006, 2007
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
 
 
   This file is part of GAS, the GNU Assembler.
   This file is part of GAS, the GNU Assembler.
 
 
   GAS is free software; you can redistribute it and/or modify
   GAS is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3, or (at your option)
   the Free Software Foundation; either version 3, or (at your option)
   any later version.
   any later version.
 
 
   GAS is distributed in the hope that it will be useful,
   GAS is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with GAS; see the file COPYING.  If not, write to the Free
   along with GAS; see the file COPYING.  If not, write to the Free
   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
   02110-1301, USA.
   02110-1301, USA.
 
 
   Written by the Center for Software Science at the University of Utah
   Written by the Center for Software Science at the University of Utah
   and by Cygnus Support.  */
   and by Cygnus Support.  */
 
 
#ifndef _OBJ_SOM_H
#ifndef _OBJ_SOM_H
#define _OBJ_SOM_H
#define _OBJ_SOM_H
 
 
#define OBJ_SOM 1
#define OBJ_SOM 1
 
 
#include "bfd/som.h"
#include "bfd/som.h"
#include "targ-cpu.h"
#include "targ-cpu.h"
 
 
#ifndef FALSE
#ifndef FALSE
#define FALSE 0
#define FALSE 0
#define TRUE !FALSE
#define TRUE !FALSE
#endif
#endif
 
 
/* should be conditional on address size!  */
/* should be conditional on address size!  */
#define som_symbol(asymbol) ((som_symbol_type *) (&(asymbol)->the_bfd))
#define som_symbol(asymbol) ((som_symbol_type *) (&(asymbol)->the_bfd))
 
 
extern void som_file_symbol           (char *);
extern void som_file_symbol           (char *);
extern void som_frob_file             (void);
extern void som_frob_file             (void);
extern void obj_som_version           (int);
extern void obj_som_version           (int);
extern void obj_som_init_stab_section (segT);
extern void obj_som_init_stab_section (segT);
extern void obj_som_copyright         (int);
extern void obj_som_copyright         (int);
extern void obj_som_compiler          (int);
extern void obj_som_compiler          (int);
 
 
#define obj_symbol_new_hook(s) {;}
#define obj_symbol_new_hook(s) {;}
 
 
/* SOM has several attributes for spaces/subspaces which can not
/* SOM has several attributes for spaces/subspaces which can not
   be easily expressed in BFD.  We use these macros to trigger calls
   be easily expressed in BFD.  We use these macros to trigger calls
   into the SOM BFD backend to set these attributes.  */
   into the SOM BFD backend to set these attributes.  */
#define obj_set_section_attributes  bfd_som_set_section_attributes
#define obj_set_section_attributes  bfd_som_set_section_attributes
#define obj_set_subsection_attributes bfd_som_set_subsection_attributes
#define obj_set_subsection_attributes bfd_som_set_subsection_attributes
 
 
/* Likewise for symbol types.  */
/* Likewise for symbol types.  */
#define obj_set_symbol_type bfd_som_set_symbol_type
#define obj_set_symbol_type bfd_som_set_symbol_type
 
 
/* Stabs go in a separate sections.  GDB expects to find them in sections
/* Stabs go in a separate sections.  GDB expects to find them in sections
   with the names $GDB_SYMBOLS$ and $GDB_STRINGS$ rather than .stab and
   with the names $GDB_SYMBOLS$ and $GDB_STRINGS$ rather than .stab and
   .stabstr.  */
   .stabstr.  */
#define SEPARATE_STAB_SECTIONS 1
#define SEPARATE_STAB_SECTIONS 1
#define STAB_SECTION_NAME "$GDB_SYMBOLS$"
#define STAB_SECTION_NAME "$GDB_SYMBOLS$"
#define STAB_STRING_SECTION_NAME "$GDB_STRINGS$"
#define STAB_STRING_SECTION_NAME "$GDB_STRINGS$"
 
 
/* We use INIT_STAB_SECTION to record the space/subspace relationships
/* We use INIT_STAB_SECTION to record the space/subspace relationships
   for the various debugging sections.  */
   for the various debugging sections.  */
#define INIT_STAB_SECTION(seg) obj_som_init_stab_section (seg)
#define INIT_STAB_SECTION(seg) obj_som_init_stab_section (seg)
 
 
/* We'll be updating the magic 1st stab entry once the entire assembly
/* We'll be updating the magic 1st stab entry once the entire assembly
   fail has been processed.  */
   fail has been processed.  */
#define obj_frob_file() som_frob_file()
#define obj_frob_file() som_frob_file()
 
 
#endif /* _OBJ_SOM_H */
#endif /* _OBJ_SOM_H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.