2001-02-27 H.J. Lu <hjl@gnu.org>
[binutils.git] / gas / config / obj-generic.h
blob00e46382f58e7752d6d743bc9417d83ed0ed0cfb
1 /* This file is obj-generic.h
2 Copyright (C) 1987-1992, 2000 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
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
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
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.
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
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA. */
22 * This file is obj-generic.h and is intended to be a template for
23 * object format specific header files.
26 /* define an obj specific macro off which target cpu back ends may key. */
27 #define OBJ_GENERIC 1
29 /* include whatever target cpu is appropriate. */
30 #include "targ-cpu.h"
33 * SYMBOLS
37 * If your object format needs to reorder symbols, define this. When
38 * defined, symbols are kept on a doubly linked list and functions are
39 * made available for push, insert, append, and delete. If not defined,
40 * symbols are kept on a singly linked list, only the append and clear
41 * facilities are available, and they are macros.
44 /* #define SYMBOLS_NEED_PACKPOINTERS */
46 /* */
47 typedef struct
49 void *nothing;
52 obj_symbol_type; /* should be the format's symbol structure */
54 typedef void *object_headers;
56 /* symbols have names */
57 #define S_GET_NAME(s) ("foo") /* get the name of a symbolP */
58 #define S_SET_NAME(s,v) ;
59 /* symbols have segments */
60 #define S_GET_SEGMENT(s) (SEG_UNKNOWN)
61 #define S_SET_SEGMENT(s,v) ;
62 /* symbols may be external */
63 #define S_IS_EXTERNAL(s) (0)
64 #define S_SET_EXTERNAL(s) ;
66 /* symbols may or may not be defined */
67 #define S_IS_DEFINED(s) (0)
69 #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE (0) /* your magic number */
71 #define OBJ_EMIT_LINENO(a,b,c) /* must be *something*. This no-op's it out. */
74 * Local Variables:
75 * comment-column: 0
76 * fill-column: 131
77 * End: