1 /* BFD internal declarations for Oasys file format handling */
2 /* Scrawled by Steve Chamberlain of Cygnus Support. */
4 /* Copyright (C) 1990, 1991 Free Software Foundation, Inc.
6 This file is part of BFD, the Binary File Diddler.
8 BFD is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 1, or (at your option)
13 BFD is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with BFD; see the file COPYING. If not, write to
20 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
23 typedef struct _oasys_symbol
28 typedef struct _oasys_reloc {
30 struct _oasys_reloc *next;
35 #define oasys_symbol(x) ((oasys_symbol_type *)(x))
36 #define oasys_per_section(x) ((oasys_per_section_type *)(x->used_by_bfd))
38 typedef struct _oasys_per_section
44 oasys_reloc_type **reloc_tail_ptr;
49 unsigned int current_byte;
51 } oasys_per_section_type;
55 typedef struct _oasys_ar_obstack {
58 } oasys_ar_obstack_type;
61 typedef struct _oasys_module_info {
66 } oasys_module_info_type;
68 typedef struct _oasys_ar_data {
69 oasys_module_info_type *module;
70 unsigned int module_count;
71 unsigned int module_index;
74 typedef struct _oasys_data {
75 struct obstack oasys_obstack;
78 unsigned int symbol_string_length;
79 asection *sections[OASYS_MAX_SEC_COUNT];
80 file_ptr first_data_record;
83 #define oasys_data(abfd) ((oasys_data_type *)((abfd)->tdata))
84 #define oasys_ar_data(abfd) ((oasys_ar_data_type *)((abfd)->tdata))