]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/config/obj-som.h
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / gas / config / obj-som.h
CommitLineData
252b5132 1/* SOM object file format.
d87bef3a 2 Copyright (C) 1993-2023 Free Software Foundation, Inc.
252b5132
RH
3
4 This file is part of GAS, the GNU Assembler.
5
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
ec2655a6 8 the Free Software Foundation; either version 3, or (at your option)
252b5132
RH
9 any later version.
10
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.
15
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
4b4da160
NC
18 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
19 02110-1301, USA.
252b5132
RH
20
21 Written by the Center for Software Science at the University of Utah
22 and by Cygnus Support. */
23
24#ifndef _OBJ_SOM_H
25#define _OBJ_SOM_H
26
27#define OBJ_SOM 1
28
252b5132 29#include "bfd/som.h"
e1f000f6 30#include "som/reloc.h"
252b5132
RH
31#include "targ-cpu.h"
32
252b5132 33/* should be conditional on address size! */
814f6641 34#define som_symbol(asymbol) ((som_symbol_type *) (&(asymbol)->the_bfd))
252b5132 35
ea1562b3
NC
36extern void som_file_symbol (char *);
37extern void som_frob_file (void);
38extern void obj_som_version (int);
39extern void obj_som_init_stab_section (segT);
40extern void obj_som_copyright (int);
41extern void obj_som_compiler (int);
252b5132
RH
42
43#define obj_symbol_new_hook(s) {;}
44
45/* SOM has several attributes for spaces/subspaces which can not
46 be easily expressed in BFD. We use these macros to trigger calls
47 into the SOM BFD backend to set these attributes. */
48#define obj_set_section_attributes bfd_som_set_section_attributes
49#define obj_set_subsection_attributes bfd_som_set_subsection_attributes
50
51/* Likewise for symbol types. */
52#define obj_set_symbol_type bfd_som_set_symbol_type
53
54/* Stabs go in a separate sections. GDB expects to find them in sections
55 with the names $GDB_SYMBOLS$ and $GDB_STRINGS$ rather than .stab and
56 .stabstr. */
57#define SEPARATE_STAB_SECTIONS 1
58#define STAB_SECTION_NAME "$GDB_SYMBOLS$"
59#define STAB_STRING_SECTION_NAME "$GDB_STRINGS$"
60
61/* We use INIT_STAB_SECTION to record the space/subspace relationships
62 for the various debugging sections. */
63#define INIT_STAB_SECTION(seg) obj_som_init_stab_section (seg)
64
65/* We'll be updating the magic 1st stab entry once the entire assembly
66 fail has been processed. */
67#define obj_frob_file() som_frob_file()
68
69#endif /* _OBJ_SOM_H */