2 Copyright (C) 1987, 1992 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)
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
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21 * This file is obj-bfd-sunos.h.
24 /* define an obj specific macro off which target cpu back ends may key. */
30 /* include whatever target cpu is appropriate. */
38 * If your object format needs to reorder symbols, define this. When
39 * defined, symbols are kept on a doubly linked list and functions are
40 * made available for push, insert, append, and delete. If not defined,
41 * symbols are kept on a singly linked list, only the append and clear
42 * facilities are available, and they are macros.
45 /* #define SYMBOLS_NEED_PACKPOINTERS */
47 typedef asymbol obj_symbol_type;
48 typedef void *object_headers;
50 #define S_SET_NAME(s, v) ((s)->sy_symbol.name = (v))
51 #define S_GET_NAME(s) ((s)->sy_symbol.name)
52 #define S_SET_SEGMENT(s,v) ((s)->sy_symbol.udata = (v))
53 #define S_GET_SEGMENT(s) ((s)->sy_symbol.udata)
54 #define S_SET_EXTERNAL(s) ((s)->sy_symbol.flags |= BSF_GLOBAL)
55 #define S_SET_VALUE(s,v) ((s)->sy_symbol.value = (v))
56 #define S_GET_VALUE(s) ((s)->sy_symbol.value)
57 #define S_IS_DEFINED(s) (!((s)->sy_symbol.flags & BSF_UNDEFINED))
59 #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE (0) /* your magic number */
60 #define OBJ_EMIT_LINENO(a,b,c) /* must be *something*. This no-op's it out. */
69 /* end of obj-bfd-sunos.h */