Back to index

cell-binutils  2.17cvs20070401
ieee.h
Go to the documentation of this file.
00001 /* IEEE Standard 695-1980 "Universal Format for Object Modules" header file
00002 
00003    Copyright 2001 Free Software Foundation, Inc.
00004    
00005    This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published by
00007    the Free Software Foundation; either version 2, or (at your option)
00008    any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software
00017    Foundation, Inc., 51 Franklin Street - Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019    
00020    Contributed by Cygnus Support.  */
00021 
00022 #define N_W_VARIABLES 8
00023 #define Module_Beginning 0xe0
00024 
00025 typedef struct ieee_module
00026   {
00027     char *processor;
00028     char *module_name;
00029   }
00030 ieee_module_begin_type;
00031 
00032 #define Address_Descriptor 0xec
00033 typedef struct ieee_address
00034   {
00035     bfd_vma number_of_bits_mau;
00036     bfd_vma number_of_maus_in_address;
00037 
00038     unsigned char byte_order;
00039 #define IEEE_LITTLE 0xcc
00040 #define IEEE_BIG 0xcd
00041   }
00042 ieee_address_descriptor_type;
00043 
00044 typedef union ieee_w_variable
00045   {
00046     file_ptr offset[N_W_VARIABLES];
00047 
00048     struct
00049       {
00050        file_ptr extension_record;
00051        file_ptr environmental_record;
00052        file_ptr section_part;
00053        file_ptr external_part;
00054        file_ptr debug_information_part;
00055        file_ptr data_part;
00056        file_ptr trailer_part;
00057        file_ptr me_record;
00058       }
00059     r;
00060   }
00061 ieee_w_variable_type;
00062 
00063 typedef enum ieee_record
00064   { 
00065     ieee_number_start_enum = 0x00,
00066     ieee_number_end_enum=0x7f,
00067     ieee_number_repeat_start_enum = 0x80,
00068     ieee_number_repeat_end_enum = 0x88,
00069     ieee_number_repeat_4_enum = 0x84,
00070     ieee_number_repeat_3_enum = 0x83,
00071     ieee_number_repeat_2_enum = 0x82,
00072     ieee_number_repeat_1_enum = 0x81,
00073     ieee_module_beginning_enum = 0xe0,
00074     ieee_module_end_enum = 0xe1,
00075     ieee_extension_length_1_enum = 0xde,
00076     ieee_extension_length_2_enum = 0xdf,
00077     ieee_section_type_enum = 0xe6,
00078     ieee_section_alignment_enum = 0xe7,
00079     ieee_external_symbol_enum = 0xe8,
00080     ieee_comma = 0x90,
00081     ieee_external_reference_enum = 0xe9,
00082     ieee_set_current_section_enum = 0xe5,
00083     ieee_address_descriptor_enum = 0xec,
00084     ieee_load_constant_bytes_enum = 0xed,
00085     ieee_load_with_relocation_enum = 0xe4,
00086 
00087     ieee_variable_A_enum = 0xc1,
00088     ieee_variable_B_enum = 0xc2,
00089     ieee_variable_C_enum = 0xc3,
00090     ieee_variable_D_enum = 0xc4,
00091     ieee_variable_E_enum = 0xc5,
00092     ieee_variable_F_enum = 0xc6,
00093     ieee_variable_G_enum = 0xc7,
00094     ieee_variable_H_enum = 0xc8,
00095     ieee_variable_I_enum = 0xc9,
00096     ieee_variable_J_enum = 0xca,
00097     ieee_variable_K_enum = 0xcb,
00098     ieee_variable_L_enum = 0xcc,
00099     ieee_variable_M_enum = 0xcd,
00100     ieee_variable_N_enum = 0xce,
00101     ieee_variable_O_enum = 0xcf,
00102     ieee_variable_P_enum = 0xd0,
00103     ieee_variable_Q_enum = 0xd1,
00104     ieee_variable_R_enum = 0xd2,
00105     ieee_variable_S_enum = 0xd3,
00106     ieee_variable_T_enum = 0xd4,
00107     ieee_variable_U_enum = 0xd5,
00108     ieee_variable_V_enum = 0xd6,
00109     ieee_variable_W_enum = 0xd7,
00110     ieee_variable_X_enum = 0xd8,
00111     ieee_variable_Y_enum = 0xd9,
00112     ieee_variable_Z_enum = 0xda,
00113     ieee_function_plus_enum = 0xa5,
00114     ieee_function_minus_enum = 0xa6,
00115     ieee_function_signed_open_b_enum = 0xba,
00116     ieee_function_signed_close_b_enum = 0xbb,
00117 
00118     ieee_function_unsigned_open_b_enum = 0xbc,
00119     ieee_function_unsigned_close_b_enum = 0xbd,
00120 
00121     ieee_function_either_open_b_enum = 0xbe,
00122     ieee_function_either_close_b_enum = 0xbf,
00123     ieee_record_seperator_enum = 0xdb,
00124 
00125     ieee_e2_first_byte_enum = 0xe2,
00126     ieee_section_size_enum = 0xe2d3,
00127     ieee_physical_region_size_enum = 0xe2c1,
00128     ieee_region_base_address_enum = 0xe2c2,
00129     ieee_mau_size_enum = 0xe2c6,
00130     ieee_m_value_enum = 0xe2cd,
00131     ieee_section_base_address_enum = 0xe2cc,
00132     ieee_asn_record_enum = 0xe2ce,
00133     ieee_section_offset_enum = 0xe2d2,
00134     ieee_value_starting_address_enum = 0xe2c7,
00135     ieee_assign_value_to_variable_enum = 0xe2d7,
00136     ieee_set_current_pc_enum = 0xe2d0,
00137     ieee_value_record_enum = 0xe2c9,
00138     ieee_nn_record = 0xf0,
00139     ieee_at_record_enum = 0xf1,
00140     ieee_ty_record_enum = 0xf2,
00141     ieee_attribute_record_enum = 0xf1c9,
00142     ieee_atn_record_enum = 0xf1ce,
00143     ieee_external_reference_info_record_enum = 0xf1d8,
00144     ieee_weak_external_reference_enum= 0xf4,
00145     ieee_repeat_data_enum = 0xf7,
00146     ieee_bb_record_enum = 0xf8,
00147     ieee_be_record_enum = 0xf9
00148   }
00149 ieee_record_enum_type;
00150 
00151 typedef struct ieee_section
00152   {
00153     unsigned int section_index;
00154     unsigned int section_type;
00155     char *       section_name;
00156     unsigned int parent_section_index;
00157     unsigned int sibling_section_index;
00158     unsigned int context_index;
00159   }
00160 ieee_section_type;
00161 
00162 #define IEEE_REFERENCE_BASE 11
00163 #define IEEE_PUBLIC_BASE 32
00164 #define IEEE_SECTION_NUMBER_BASE 1
00165