Commit | Line | Data |
---|---|---|
a39116f1 RP |
1 | /* |
2 | Copyright (C) 1987 Free Software Foundation, Inc. | |
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 | |
8 | the Free Software Foundation; either version 2, or (at your option) | |
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 | |
18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
19 | ||
0e39a8bb RP |
20 | /* |
21 | * This file is obj-bfd-sunos.h. | |
22 | */ | |
23 | ||
a39116f1 | 24 | /* define an obj specific macro off which target cpu back ends may key. */ |
0e39a8bb RP |
25 | #define OBJ_BFD |
26 | #define OBJ_BFD_SUNOS | |
27 | ||
28 | #include "bfd.h" | |
29 | ||
a39116f1 | 30 | /* include whatever target cpu is appropriate. */ |
0e39a8bb RP |
31 | #include "targ-cpu.h" |
32 | ||
33 | /* | |
34 | * SYMBOLS | |
35 | */ | |
36 | ||
37 | /* | |
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. | |
43 | */ | |
44 | ||
a39116f1 | 45 | /* #define SYMBOLS_NEED_PACKPOINTERS */ |
0e39a8bb RP |
46 | |
47 | typedef asymbol obj_symbol_type; | |
48 | typedef void *object_headers; | |
49 | ||
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)) | |
58 | ||
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. */ | |
61 | ||
62 | /* | |
63 | * Local Variables: | |
64 | * comment-column: 0 | |
65 | * fill-column: 131 | |
66 | * End: | |
67 | */ | |
68 | ||
69 | /* end of obj-bfd-sunos.h */ |