* ecoff.h (STYP_ECOFF_LIB): Define as used on Irix 4.
[platform/upstream/binutils.git] / include / ieee.h
1 #define N_W_VARIABLES 8
2 #define Module_Beginning 0xe0
3
4 typedef struct {
5   char *processor;
6   char *module_name;
7 } ieee_module_begin_type;
8
9 #define Address_Descriptor 0xec
10 typedef struct {
11 bfd_vma number_of_bits_mau;
12  bfd_vma number_of_maus_in_address;
13
14   unsigned char byte_order;
15 #define IEEE_LITTLE 0xcc
16 #define IEEE_BIG 0xcd
17 } ieee_address_descriptor_type;
18
19 typedef union {
20   file_ptr offset[N_W_VARIABLES];
21   struct {
22     file_ptr extension_record;
23     file_ptr environmental_record;
24     file_ptr section_part;
25     file_ptr external_part;
26     file_ptr debug_information_part;
27     file_ptr data_part;
28     file_ptr trailer_part;
29     file_ptr me_record;
30   } r;
31 } ieee_w_variable_type;
32
33
34
35
36
37 typedef enum 
38
39   ieee_number_start_enum = 0x00,
40   ieee_number_end_enum=0x7f,
41   ieee_number_repeat_start_enum = 0x80,
42   ieee_number_repeat_end_enum = 0x88,
43   ieee_number_repeat_4_enum = 0x84,
44   ieee_number_repeat_3_enum = 0x83,
45   ieee_number_repeat_2_enum = 0x82,
46   ieee_number_repeat_1_enum = 0x81,
47   ieee_module_beginning_enum = 0xe0,
48   ieee_module_end_enum = 0xe1,
49   ieee_extension_length_1_enum = 0xde,
50   ieee_extension_length_2_enum = 0xdf,
51   ieee_section_type_enum = 0xe6,
52   ieee_section_alignment_enum = 0xe7,
53   ieee_external_symbol_enum = 0xe8,
54   ieee_attribute_record_enum = 0xf1c9,
55   ieee_comma = 0x90,
56   ieee_external_reference_enum = 0xe9,
57   ieee_set_current_section_enum = 0xe5,
58   ieee_address_descriptor_enum = 0xec,
59   ieee_load_constant_bytes_enum = 0xed,
60   ieee_load_with_relocation_enum = 0xe4,
61
62   ieee_variable_A_enum = 0xc1,                                 
63   ieee_variable_B_enum = 0xc2,                                 
64   ieee_variable_C_enum = 0xc3,                                 
65   ieee_variable_D_enum = 0xc4,                                 
66   ieee_variable_E_enum = 0xc5,                                 
67   ieee_variable_F_enum = 0xc6,                                 
68   ieee_variable_G_enum = 0xc7,                                 
69   ieee_variable_H_enum = 0xc8,                                 
70   ieee_variable_I_enum = 0xc9,                                 
71   ieee_variable_J_enum = 0xca,                                 
72   ieee_variable_K_enum = 0xcb,                                 
73   ieee_variable_L_enum = 0xcc,                                 
74   ieee_variable_M_enum = 0xcd,                                 
75   ieee_variable_N_enum = 0xce,                                 
76   ieee_variable_O_enum = 0xcf,                                 
77   ieee_variable_P_enum = 0xd0,                                 
78   ieee_variable_Q_enum = 0xd1,                                 
79   ieee_variable_R_enum = 0xd2,                                 
80   ieee_variable_S_enum = 0xd3,                                 
81   ieee_variable_T_enum = 0xd4,                                 
82   ieee_variable_U_enum = 0xd5,                                 
83   ieee_variable_V_enum = 0xd6,                                 
84   ieee_variable_W_enum = 0xd7,                                 
85   ieee_variable_X_enum = 0xd8,                                 
86   ieee_variable_Y_enum = 0xd9,                                 
87   ieee_variable_Z_enum = 0xda,
88   ieee_function_plus_enum = 0xa5,
89   ieee_function_minus_enum = 0xa6,
90   ieee_function_signed_open_b_enum = 0xba,
91   ieee_function_signed_close_b_enum = 0xbb,
92
93   ieee_function_unsigned_open_b_enum = 0xbc,
94   ieee_function_unsigned_close_b_enum = 0xbd,
95
96   ieee_function_either_open_b_enum = 0xbe,
97   ieee_function_either_close_b_enum = 0xbf,
98   ieee_record_seperator_enum = 0xdb,
99
100   ieee_e2_first_byte_enum = 0xe2,
101   ieee_section_size_enum = 0xe2d3,
102   ieee_physical_region_size_enum = 0xe2c1,
103   ieee_region_base_address_enum = 0xe2c2,
104   ieee_mau_size_enum = 0xe2c6,
105   ieee_m_value_enum = 0xe2cd,
106   ieee_section_base_address_enum = 0xe2cc,
107   ieee_section_offset_enum = 0xe2d2,
108   ieee_value_starting_address_enum = 0xe2c7,
109   ieee_assign_value_to_variable_enum = 0xe2d7,
110   ieee_set_current_pc_enum = 0xe2d0,
111   ieee_value_record_enum = 0xe2c9,
112   ieee_weak_external_reference_enum= 0xf4,
113
114 } ieee_record_enum_type;
115                  
116
117 typedef struct {
118   unsigned int section_index;
119   unsigned int section_type;
120   char *section_name;
121   unsigned int parent_section_index;
122   unsigned int sibling_section_index;
123   unsigned int context_index;
124 } ieee_section_type;
125 #define IEEE_REFERENCE_BASE 11
126 #define IEEE_PUBLIC_BASE 32
127 #define IEEE_SECTION_NUMBER_BASE 1
128