1 /* IEEE-695 object file formats: definitions internal to BFD.
2 Copyright (C) 1990, 91, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
3 Written by Cygnus Support. Mostly Steve Chamberlain's fault.
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 2 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
22 unsigned int index:24;
24 } ieee_symbol_index_type;
31 typedef struct ieee_symbol
34 struct ieee_symbol *next;
40 typedef struct ieee_reloc {
42 struct ieee_reloc *next;
43 ieee_symbol_index_type symbol;
47 #define ieee_symbol(x) ((ieee_symbol_type *)(x))
49 typedef struct ieee_per_section
57 unsigned int current_byte;
59 ieee_reloc_type **reloc_tail_ptr;
60 } ieee_per_section_type;
62 #define ieee_per_section(x) ((ieee_per_section_type *)((x)->used_by_bfd))
65 unsigned char *input_p;
66 unsigned char *first_byte;
68 } common_header_type ;
70 typedef struct ieee_data_struct
75 file_ptr output_cursor;
76 /* Map of section indexes to section ptrs */
77 asection **section_table;
78 unsigned int section_table_size;
79 ieee_address_descriptor_type ad;
80 ieee_module_begin_type mb;
81 ieee_w_variable_type w;
83 unsigned int section_count;
86 /* List of GLOBAL EXPORT symbols */
87 ieee_symbol_type *external_symbols;
88 /* List of UNDEFINED symbols */
89 ieee_symbol_type *external_reference;
91 /* When the symbols have been canonicalized, they are in a
92 * special order, we remember various bases here.. */
93 unsigned int external_symbol_max_index;
94 unsigned int external_symbol_min_index;
95 unsigned int external_symbol_count;
96 int external_symbol_base_offset;
98 unsigned int external_reference_max_index;
99 unsigned int external_reference_min_index;
100 unsigned int external_reference_count;
101 int external_reference_base_offset;
104 boolean symbol_table_full;
110 bfd_chain_type *chain_head;
111 bfd_chain_type *chain_root;
116 file_ptr file_offset;
118 } ieee_ar_obstack_type;
120 typedef struct ieee_ar_data_struct
122 common_header_type h;
123 ieee_ar_obstack_type *elements;
125 unsigned int element_index ;
126 unsigned int element_count;
130 #define IEEE_DATA(abfd) ((abfd)->tdata.ieee_data)
131 #define IEEE_AR_DATA(abfd) ((abfd)->tdata.ieee_ar_data)
133 #define ptr(abfd) (ieee_data(abfd)->input_p)