OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [gas/] [config/] [obj-som.h] - Blame information for rev 156

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* SOM object file format.
2
   Copyright 1993, 1994, 1995, 1998, 2000, 2004, 2005, 2006, 2007
3
   Free Software Foundation, Inc.
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
9
   the Free Software Foundation; either version 3, or (at your option)
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
19
   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
20
   02110-1301, USA.
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
 
30
#include "bfd/som.h"
31
#include "targ-cpu.h"
32
 
33
#ifndef FALSE
34
#define FALSE 0
35
#define TRUE !FALSE
36
#endif
37
 
38
/* should be conditional on address size!  */
39
#define som_symbol(asymbol) ((som_symbol_type *) (&(asymbol)->the_bfd))
40
 
41
extern void som_file_symbol           (char *);
42
extern void som_frob_file             (void);
43
extern void obj_som_version           (int);
44
extern void obj_som_init_stab_section (segT);
45
extern void obj_som_copyright         (int);
46
extern void obj_som_compiler          (int);
47
 
48
#define obj_symbol_new_hook(s) {;}
49
 
50
/* SOM has several attributes for spaces/subspaces which can not
51
   be easily expressed in BFD.  We use these macros to trigger calls
52
   into the SOM BFD backend to set these attributes.  */
53
#define obj_set_section_attributes  bfd_som_set_section_attributes
54
#define obj_set_subsection_attributes bfd_som_set_subsection_attributes
55
 
56
/* Likewise for symbol types.  */
57
#define obj_set_symbol_type bfd_som_set_symbol_type
58
 
59
/* Stabs go in a separate sections.  GDB expects to find them in sections
60
   with the names $GDB_SYMBOLS$ and $GDB_STRINGS$ rather than .stab and
61
   .stabstr.  */
62
#define SEPARATE_STAB_SECTIONS 1
63
#define STAB_SECTION_NAME "$GDB_SYMBOLS$"
64
#define STAB_STRING_SECTION_NAME "$GDB_STRINGS$"
65
 
66
/* We use INIT_STAB_SECTION to record the space/subspace relationships
67
   for the various debugging sections.  */
68
#define INIT_STAB_SECTION(seg) obj_som_init_stab_section (seg)
69
 
70
/* We'll be updating the magic 1st stab entry once the entire assembly
71
   fail has been processed.  */
72
#define obj_frob_file() som_frob_file()
73
 
74
#endif /* _OBJ_SOM_H */

powered by: WebSVN 2.1.0

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