1 /* BFD internal declarations for Oasys file format handling.
2 Copyright (C) 1990-2017 Free Software Foundation, Inc.
3 Scrawled by Steve Chamberlain of Cygnus Support.
5 This file is part of BFD, the Binary File Descriptor library.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20 MA 02110-1301, USA. */
22 typedef struct _oasys_symbol
27 typedef struct _oasys_reloc
{
29 struct _oasys_reloc
*next
;
34 #define oasys_symbol(x) ((oasys_symbol_type *)(x))
35 #define oasys_per_section(x) ((oasys_per_section_type *)(x->used_by_bfd))
37 typedef struct _oasys_per_section
43 oasys_reloc_type
**reloc_tail_ptr
;
48 unsigned int current_byte
;
49 bfd_boolean initialized
;
50 } oasys_per_section_type
;
54 typedef struct _oasys_ar_obstack
{
57 } oasys_ar_obstack_type
;
60 typedef struct _oasys_module_info
{
65 } oasys_module_info_type
;
67 typedef struct _oasys_ar_data
{
68 oasys_module_info_type
*module
;
69 unsigned int module_count
;
70 unsigned int module_index
;
73 typedef struct _oasys_data
{
76 unsigned int symbol_string_length
;
77 asection
*sections
[OASYS_MAX_SEC_COUNT
];
78 file_ptr first_data_record
;
81 #define OASYS_DATA(abfd) ((abfd)->tdata.oasys_obj_data)
82 #define OASYS_AR_DATA(abfd) ((abfd)->tdata.oasys_ar_data)