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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gas/] [config/] [obj-som.h] - Blame information for rev 81

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 khays
/* 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 "som/reloc.h"
32
#include "targ-cpu.h"
33
 
34
#ifndef FALSE
35
#define FALSE 0
36
#define TRUE !FALSE
37
#endif
38
 
39
/* should be conditional on address size!  */
40
#define som_symbol(asymbol) ((som_symbol_type *) (&(asymbol)->the_bfd))
41
 
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);
48
 
49
#define obj_symbol_new_hook(s) {;}
50
 
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
56
 
57
/* Likewise for symbol types.  */
58
#define obj_set_symbol_type bfd_som_set_symbol_type
59
 
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$"
66
 
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)
70
 
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()
74
 
75
#endif /* _OBJ_SOM_H */

powered by: WebSVN 2.1.0

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