COMPILATION LISTING OF SEGMENT cobol_link_init Compiled by: Multics PL/I Compiler, Release 31b, of April 24, 1989 Compiled at: Bull HN, Phoenix AZ, System-M Compiled on: 05/24/89 0947.2 mst Wed Options: optimize map 1 /****^ *********************************************************** 2* * * 3* * Copyright, (C) BULL HN Information Systems Inc., 1989 * 4* * * 5* * Copyright, (C) Honeywell Information Systems Inc., 1982 * 6* * * 7* * Copyright (c) 1972 by Massachusetts Institute of * 8* * Technology and Honeywell Information Systems, Inc. * 9* * * 10* *********************************************************** */ 11 12 13 14 15 /****^ HISTORY COMMENTS: 16* 1) change(89-04-23,Zimmerman), approve(89-04-23,MCR8060), 17* audit(89-05-05,RWaters), install(89-05-24,MR12.3-1048): 18* MCR8060 cobol_link_init.pl1 Reformatted code to new Cobol standard. 19* END HISTORY COMMENTS */ 20 21 22 /* Modified on 07/18/78 by RAL, [3.0-1], changed cobol_linkage_header.incl.pl1 */ 23 /* Modified since Version 3.0 */ 24 25 /* format: style3 */ 26 cobol_link_init: 27 proc; /* 28*The procedure cobol_link_init initializes the Linkage Section and 29*outputs corresponding relocation information. In particular it: 30* 31* 1. Initializes all items in the header with the exception 32* of def_section_relp and linkage_section_length. 33* 34* 2. Initializes all fixed internal static data (stat and 35* trace_control_word) with the exception of stat.data_len. 36* 37*cobol_link_init is called once per compilation, prior to code 38*generation. 39* 40* 41*U__s_a_g_e:_ 42* 43* declare cobol_link_init entry; 44* 45* call cobol_link_init; 46* 47*D__a_t_a:_ 48* 49* % include cobol_; 50* 51* Items in cobol include file used (u) and/or set(s) by 52* cobol_link_init: 53* 54* cobol_ptr (u) 55* com_ptr (u) 56* link_base_ptr (u) 57* link_wd_off (s) 58* link_max (u) 59* 60* 61* % include fixed_common; 62* 63* Items in fixed_common include file used (u) and/or set (s) 64* by cobol_link_init: 65* 66* prog_name (u) */ 67 1 1 1 2 /* BEGIN INCLUDE FILE ... cobol_linkage_header.incl.pl1 */ 1 3 1 4 /* Last modified 07/19/78 by RAL to conform with MULTICS standard linkage map */ 1 5 /* Last modified June 26, 1974 by AEG */ 1 6 1 7 1 8 1 9 declare 1 linkage_header aligned based(link_base_ptr), 1 10 2 pad bit(36), 1 11 2 def_section_relp bit(18) unaligned, 1 12 2 first_reference_relp bit(18) unaligned, 1 13 2 obsolete_ptr ptr unal, 1 14 2 original_linkage_ptr ptr unal, 1 15 2 unused bit (72), 1 16 2 links_relp bit(18) unaligned, 1 17 2 linkage_section_length bit(18) unaligned, 1 18 2 object_seg bit(18) unaligned, 1 19 2 obsolete_length bit(18) unaligned; 1 20 1 21 1 22 /* 1 23*link_base_ptr is a pointer to the base of the 1 24* linkage section and is an element 1 25* of the structure cobol_ located in 1 26* cobol_external_seg. 1 27* 1 28*pad is reserved for future use and 1 29* must be zero. 1 30* 1 31*def_section_relp is a pointer (relative to the base 1 32* of the object segment) to the base 1 33* of the definition section. 1 34* 1 35*first_reference_relp is a pointer (relative to the base 1 36* of the linkage section) to the 1 37* array of first-reference traps. 1 38* If the value of this item is "0"b 1 39* then there are no first-reference 1 40* traps. 1 41* 1 42*obsolete_ptr for historical reasons, linkage 1 43* sections are sometimes threaded 1 44* together to form a linkage list. 1 45* This variable is a pointer to the 1 46* next linkage section on the thread. 1 47* This variable is described for 1 48* completemess; it is not intended 1 49* for general use. 1 50* 1 51*original_linkage_ptr is a pointer to the original link- 1 52* age section within the object seg- 1 53* ment. It is used by the link un- 1 54* snapping mechanism. It is init- 1 55* ialized by the linker. 1 56* 1 57*links_relp is a pointer (retative to the base 1 58* of the linkage section) to the 1 59* first link (the base of the link 1 60* structure). 1 61* 1 62*linkage_section_length is the length in words of the 1 63* linkage section. 1 64* 1 65*object_seg is the segment number of the object 1 66* segment. It is initialized by the 1 67* linker. 1 68* 1 69*obsolete_length when several linkage sections are 1 70* combined into a list, this item 1 71* (in the first linkage section in 1 72* the list) contains the length of 1 73* the entire list. See the above 1 74* discussion under obsolete_ptr. 1 75* */ 1 76 /* END INCLUDE FILE ... cobol_linkage_header.incl.pl1 */ 1 77 68 69 /* [3.0-1] */ 70 2 1 2 2 /* BEGIN INCLUDE FILE ... cobol_fixed_static.incl.pl1 */ 2 3 /* Last Modified May 5, 1977 by BC */ 2 4 2 5 /* This structure exists in the static data portion of the 2 6*linkage section of each cobol object segment. This 2 7*include file provides a "based" template for it. */ 2 8 2 9 /* This include file also contains internal static initialized 2 10*variables that define the offset of each field in this static 2 11*data portion of the linkage section from the 2 12*pointer upon which it is based. */ 2 13 2 14 2 15 /* WARNING: The fields in this structure,data_ptr 2 16*up to, but not including reserved, 2 17*must retain their positions in this structure forever. 2 18*No new fields not having space already allocated may be 2 19*defined as the position of the first link which follows 2 20*this fixed static area (to cobol_rts_) is in a fixed location 2 21*known to cobol_operators_. */ 2 22 dcl stat_ptr ptr; 2 23 dcl 1 stat based(stat_ptr) aligned, 2 24 2 data_ptr ptr aligned, 2 25 2 control_ptr ptr aligned, 2 26 2 file_info_ptr ptr aligned, 2 27 2 call_cnt fixed bin aligned, 2 28 2 data_len fixed bin aligned, 2 29 2 entry_pt_ptr ptr aligned, 2 30 2 prog_id_len fixed bin aligned, 2 31 2 prog_id char(65) aligned, 2 32 2 line_no (2) fixed bin aligned, 2 33 2 fo_flag fixed bin aligned, 2 34 2 fo_disp fixed bin aligned, 2 35 2 main_prog_sw fixed bin aligned, 2 36 2 sort_merge_sw fixed bin aligned, 2 37 2 ind_mask bit(36), /* overflow masking indicator bits. */ 2 38 2 pr3_save ptr, 2 39 2 pr5_save ptr, 2 40 2 user_output_ptr ptr, 2 41 2 error_output_ptr ptr, 2 42 2 user_input_ptr ptr, 2 43 2 error_con char(30) varying, 2 44 2 trace_control_word fixed bin aligned; 2 45 2 46 2 47 /* INTERNAL STATIC INITIALIZED VARIABLES THAT DEFINE THE 2 48*OFFSET OF EACH FIELD IN THE STATIC PORTION OF THE LINKAGE 2 49*SEGMENT. */ 2 50 2 51 dcl fixed_static_length fixed bin static options(constant) init(56); 2 52 dcl first_link_offset fixed bin static options(constant) init(64); 2 53 /*dcl stat_data_ptr_off fixed bin static options(constant) init(0); 2 54*/*dcl stat_control_ptr_off fixed bin static options(constant) init(2); 2 55*/*dcl stat_file_info_ptr_off fixed bin static options(constant) init(4); 2 56*/*dcl stat_call_cnt_off fixed bin static options(constant) init(6); 2 57*/*dcl stat_data_len_off fixed bin static options(constant) init(7); 2 58*/*dcl stat_entry_pt_ptr_off fixed bin static options(constant) init(8); 2 59*/*dcl stat_prog_id_len_off fixed bin static options(constant) init(10); 2 60*/*dcl stat_prog_id_off fixed bin static options(constant) init(11); 2 61*/*dcl stat_line_no_off fixed bin static options(constant) init(28); 2 62*/*dcl stat_fo_flag_off fixed bin static options(constant) init(30); 2 63*/*dcl stat_fo_disp_off fixed bin static options(constant) init(31); 2 64*/*dcl stat_main_prog_sw_off fixed bin static options(constant) init(32); 2 65*/*dcl stat_pr3_ptr_off fixed bin static options(constant) init(34); 2 66*/*dcl stat_pr5_ptr_off fixed bin static options(constant) init(36); 2 67*/*dcl stat_user_output_ptr_off fixed bin static options(constant) init(38); 2 68*/*dcl stat_error_output_ptr_off fixed bin static options(constant) init(40); 2 69*/*dcl stat_user_input_ptr_off fixed bin static options(constant) init(42); 2 70*/*dcl stat_error_con_off fixed bin static options(constant) init(44); 2 71*/*dcl stat_trace_control_word_off fixed bin static options(constant) init(53); 2 72*/**/ 2 73 2 74 /* END INCLUDE FILE ... cobol_fixed_static.incl.pl1 */ 2 75 71 72 73 dcl 1 error_s aligned static, 74 2 my_name char (32) init ("cobol_link_init"), 75 2 message_len fixed bin init (32), 76 2 message char (168) init ("Linkage Section length exceeded!"); 77 78 dcl reloc_info (4) bit (5) aligned static init ("00000"b, "00000"b, "10000"b, "00000"b); 79 80 dcl no_wds fixed bin; /* Number of words in header and */ 81 /* stat structure incremented by */ 82 /* 1, if necessary, to be even. */ 83 84 /* 85*P__r_o_c_e_d_u_r_e_s_C__a_l_l_e_d:_ 86* */ 87 88 dcl signal_ entry (char (*), ptr, ptr); 89 dcl cobol_reloc entry (ptr, fixed bin, fixed bin); 90 91 92 /* 93*_B_u_i_l_t-__i_n_F__u_n_c_t_i_o_n_s_U__s_e_d:_ 94* */ 95 96 dcl addr builtin; 97 dcl addrel builtin; 98 dcl binary builtin; 99 dcl null builtin; 100 dcl rel builtin; 101 dcl search builtin; 102 dcl substr builtin; 103 dcl unspec builtin; /*}*/ 104 3 1 3 2 /* BEGIN INCLUDE FILE ... cobol_.incl.pl1 */ 3 3 /* last modified Feb 4, 1977 by ORN */ 3 4 3 5 /* This file defines all external data used in the generator phase of Multics Cobol */ 3 6 3 7 /* POINTERS */ 3 8 dcl cobol_$text_base_ptr ptr ext; 3 9 dcl text_base_ptr ptr defined (cobol_$text_base_ptr); 3 10 dcl cobol_$con_end_ptr ptr ext; 3 11 dcl con_end_ptr ptr defined (cobol_$con_end_ptr); 3 12 dcl cobol_$def_base_ptr ptr ext; 3 13 dcl def_base_ptr ptr defined (cobol_$def_base_ptr); 3 14 dcl cobol_$link_base_ptr ptr ext; 3 15 dcl link_base_ptr ptr defined (cobol_$link_base_ptr); 3 16 dcl cobol_$sym_base_ptr ptr ext; 3 17 dcl sym_base_ptr ptr defined (cobol_$sym_base_ptr); 3 18 dcl cobol_$reloc_text_base_ptr ptr ext; 3 19 dcl reloc_text_base_ptr ptr defined (cobol_$reloc_text_base_ptr); 3 20 dcl cobol_$reloc_def_base_ptr ptr ext; 3 21 dcl reloc_def_base_ptr ptr defined (cobol_$reloc_def_base_ptr); 3 22 dcl cobol_$reloc_link_base_ptr ptr ext; 3 23 dcl reloc_link_base_ptr ptr defined (cobol_$reloc_link_base_ptr); 3 24 dcl cobol_$reloc_sym_base_ptr ptr ext; 3 25 dcl reloc_sym_base_ptr ptr defined (cobol_$reloc_sym_base_ptr); 3 26 dcl cobol_$reloc_work_base_ptr ptr ext; 3 27 dcl reloc_work_base_ptr ptr defined (cobol_$reloc_work_base_ptr); 3 28 dcl cobol_$pd_map_ptr ptr ext; 3 29 dcl pd_map_ptr ptr defined (cobol_$pd_map_ptr); 3 30 dcl cobol_$fixup_ptr ptr ext; 3 31 dcl fixup_ptr ptr defined (cobol_$fixup_ptr); 3 32 dcl cobol_$initval_base_ptr ptr ext; 3 33 dcl initval_base_ptr ptr defined (cobol_$initval_base_ptr); 3 34 dcl cobol_$initval_file_ptr ptr ext; 3 35 dcl initval_file_ptr ptr defined (cobol_$initval_file_ptr); 3 36 dcl cobol_$perform_list_ptr ptr ext; 3 37 dcl perform_list_ptr ptr defined (cobol_$perform_list_ptr); 3 38 dcl cobol_$alter_list_ptr ptr ext; 3 39 dcl alter_list_ptr ptr defined (cobol_$alter_list_ptr); 3 40 dcl cobol_$seg_init_list_ptr ptr ext; 3 41 dcl seg_init_list_ptr ptr defined (cobol_$seg_init_list_ptr); 3 42 dcl cobol_$temp_token_area_ptr ptr ext; 3 43 dcl temp_token_area_ptr ptr defined (cobol_$temp_token_area_ptr); 3 44 dcl cobol_$temp_token_ptr ptr ext; 3 45 dcl temp_token_ptr ptr defined (cobol_$temp_token_ptr); 3 46 dcl cobol_$token_block1_ptr ptr ext; 3 47 dcl token_block1_ptr ptr defined (cobol_$token_block1_ptr); 3 48 dcl cobol_$token_block2_ptr ptr ext; 3 49 dcl token_block2_ptr ptr defined (cobol_$token_block2_ptr); 3 50 dcl cobol_$minpral5_ptr ptr ext; 3 51 dcl minpral5_ptr ptr defined (cobol_$minpral5_ptr); 3 52 dcl cobol_$tag_table_ptr ptr ext; 3 53 dcl tag_table_ptr ptr defined (cobol_$tag_table_ptr); 3 54 dcl cobol_$map_data_ptr ptr ext; 3 55 dcl map_data_ptr ptr defined (cobol_$map_data_ptr); 3 56 dcl cobol_$ptr_status_ptr ptr ext; 3 57 dcl ptr_status_ptr ptr defined (cobol_$ptr_status_ptr); 3 58 dcl cobol_$reg_status_ptr ptr ext; 3 59 dcl reg_status_ptr ptr defined (cobol_$reg_status_ptr); 3 60 dcl cobol_$misc_base_ptr ptr ext; 3 61 dcl misc_base_ptr ptr defined (cobol_$misc_base_ptr); 3 62 dcl cobol_$misc_end_ptr ptr ext; 3 63 dcl misc_end_ptr ptr defined (cobol_$misc_end_ptr); 3 64 dcl cobol_$list_ptr ptr ext; 3 65 dcl list_ptr ptr defined (cobol_$list_ptr); 3 66 dcl cobol_$allo1_ptr ptr ext; 3 67 dcl allo1_ptr ptr defined (cobol_$allo1_ptr); 3 68 dcl cobol_$eln_ptr ptr ext; 3 69 dcl eln_ptr ptr defined (cobol_$eln_ptr); 3 70 dcl cobol_$diag_ptr ptr ext; 3 71 dcl diag_ptr ptr defined (cobol_$diag_ptr); 3 72 dcl cobol_$xref_token_ptr ptr ext; 3 73 dcl xref_token_ptr ptr defined (cobol_$xref_token_ptr); 3 74 dcl cobol_$xref_chain_ptr ptr ext; 3 75 dcl xref_chain_ptr ptr defined (cobol_$xref_chain_ptr); 3 76 dcl cobol_$statement_info_ptr ptr ext; 3 77 dcl statement_info_ptr ptr defined (cobol_$statement_info_ptr); 3 78 dcl cobol_$reswd_ptr ptr ext; 3 79 dcl reswd_ptr ptr defined (cobol_$reswd_ptr); 3 80 dcl cobol_$op_con_ptr ptr ext; 3 81 dcl op_con_ptr ptr defined (cobol_$op_con_ptr); 3 82 dcl cobol_$ntbuf_ptr ptr ext; 3 83 dcl ntbuf_ptr ptr defined (cobol_$ntbuf_ptr); 3 84 dcl cobol_$main_pcs_ptr ptr ext; 3 85 dcl main_pcs_ptr ptr defined (cobol_$main_pcs_ptr); 3 86 dcl cobol_$include_info_ptr ptr ext; 3 87 dcl include_info_ptr ptr defined (cobol_$include_info_ptr); 3 88 3 89 /* FIXED BIN */ 3 90 dcl cobol_$text_wd_off fixed bin ext; 3 91 dcl text_wd_off fixed bin defined (cobol_$text_wd_off); 3 92 dcl cobol_$con_wd_off fixed bin ext; 3 93 dcl con_wd_off fixed bin defined (cobol_$con_wd_off); 3 94 dcl cobol_$def_wd_off fixed bin ext; 3 95 dcl def_wd_off fixed bin defined (cobol_$def_wd_off); 3 96 dcl cobol_$def_max fixed bin ext; 3 97 dcl def_max fixed bin defined (cobol_$def_max); 3 98 dcl cobol_$link_wd_off fixed bin ext; 3 99 dcl link_wd_off fixed bin defined (cobol_$link_wd_off); 3 100 dcl cobol_$link_max fixed bin ext; 3 101 dcl link_max fixed bin defined (cobol_$link_max); 3 102 dcl cobol_$sym_wd_off fixed bin ext; 3 103 dcl sym_wd_off fixed bin defined (cobol_$sym_wd_off); 3 104 dcl cobol_$sym_max fixed bin ext; 3 105 dcl sym_max fixed bin defined (cobol_$sym_max); 3 106 dcl cobol_$reloc_text_max fixed bin(24) ext; 3 107 dcl reloc_text_max fixed bin(24) defined (cobol_$reloc_text_max); 3 108 dcl cobol_$reloc_def_max fixed bin(24) ext; 3 109 dcl reloc_def_max fixed bin(24) defined (cobol_$reloc_def_max); 3 110 dcl cobol_$reloc_link_max fixed bin(24) ext; 3 111 dcl reloc_link_max fixed bin(24) defined (cobol_$reloc_link_max); 3 112 dcl cobol_$reloc_sym_max fixed bin(24) ext; 3 113 dcl reloc_sym_max fixed bin(24) defined (cobol_$reloc_sym_max); 3 114 dcl cobol_$reloc_work_max fixed bin(24) ext; 3 115 dcl reloc_work_max fixed bin(24) defined (cobol_$reloc_work_max); 3 116 dcl cobol_$pd_map_index fixed bin ext; 3 117 dcl pd_map_index fixed bin defined (cobol_$pd_map_index); 3 118 dcl cobol_$cobol_data_wd_off fixed bin ext; 3 119 dcl cobol_data_wd_off fixed bin defined (cobol_$cobol_data_wd_off); 3 120 dcl cobol_$stack_off fixed bin ext; 3 121 dcl stack_off fixed bin defined (cobol_$stack_off); 3 122 dcl cobol_$max_stack_off fixed bin ext; 3 123 dcl max_stack_off fixed bin defined (cobol_$max_stack_off); 3 124 dcl cobol_$init_stack_off fixed bin ext; 3 125 dcl init_stack_off fixed bin defined (cobol_$init_stack_off); 3 126 dcl cobol_$pd_map_sw fixed bin ext; 3 127 dcl pd_map_sw fixed bin defined (cobol_$pd_map_sw); 3 128 dcl cobol_$next_tag fixed bin ext; 3 129 dcl next_tag fixed bin defined (cobol_$next_tag); 3 130 dcl cobol_$data_init_flag fixed bin ext; 3 131 dcl data_init_flag fixed bin defined (cobol_$data_init_flag); 3 132 dcl cobol_$seg_init_flag fixed bin ext; 3 133 dcl seg_init_flag fixed bin defined (cobol_$seg_init_flag); 3 134 dcl cobol_$alter_flag fixed bin ext; 3 135 dcl alter_flag fixed bin defined (cobol_$alter_flag); 3 136 dcl cobol_$sect_eop_flag fixed bin ext; 3 137 dcl sect_eop_flag fixed bin defined (cobol_$sect_eop_flag); 3 138 dcl cobol_$para_eop_flag fixed bin ext; 3 139 dcl para_eop_flag fixed bin defined (cobol_$para_eop_flag); 3 140 dcl cobol_$priority_no fixed bin ext; 3 141 dcl priority_no fixed bin defined (cobol_$priority_no); 3 142 dcl cobol_$compile_count fixed bin ext; 3 143 dcl compile_count fixed bin defined (cobol_$compile_count); 3 144 dcl cobol_$ptr_assumption_ind fixed bin ext; 3 145 dcl ptr_assumption_ind fixed bin defined (cobol_$ptr_assumption_ind); 3 146 dcl cobol_$reg_assumption_ind fixed bin ext; 3 147 dcl reg_assumption_ind fixed bin defined (cobol_$reg_assumption_ind); 3 148 dcl cobol_$perform_para_index fixed bin ext; 3 149 dcl perform_para_index fixed bin defined (cobol_$perform_para_index); 3 150 dcl cobol_$perform_sect_index fixed bin ext; 3 151 dcl perform_sect_index fixed bin defined (cobol_$perform_sect_index); 3 152 dcl cobol_$alter_index fixed bin ext; 3 153 dcl alter_index fixed bin defined (cobol_$alter_index); 3 154 dcl cobol_$list_off fixed bin ext; 3 155 dcl list_off fixed bin defined (cobol_$list_off); 3 156 dcl cobol_$constant_offset fixed bin ext; 3 157 dcl constant_offset fixed bin defined (cobol_$constant_offset); 3 158 dcl cobol_$misc_max fixed bin ext; 3 159 dcl misc_max fixed bin defined (cobol_$misc_max); 3 160 dcl cobol_$pd_map_max fixed bin ext; 3 161 dcl pd_map_max fixed bin defined (cobol_$pd_map_max); 3 162 dcl cobol_$map_data_max fixed bin ext; 3 163 dcl map_data_max fixed bin defined (cobol_$map_data_max); 3 164 dcl cobol_$fixup_max fixed bin ext; 3 165 dcl fixup_max fixed bin defined (cobol_$fixup_max); 3 166 dcl cobol_$tag_table_max fixed bin ext; 3 167 dcl tag_table_max fixed bin defined (cobol_$tag_table_max); 3 168 dcl cobol_$temp_token_max fixed bin ext; 3 169 dcl temp_token_max fixed bin defined (cobol_$temp_token_max); 3 170 dcl cobol_$allo1_max fixed bin ext; 3 171 dcl allo1_max fixed bin defined (cobol_$allo1_max); 3 172 dcl cobol_$eln_max fixed bin ext; 3 173 dcl eln_max fixed bin defined (cobol_$eln_max); 3 174 dcl cobol_$debug_enable fixed bin ext; 3 175 dcl debug_enable fixed bin defined (cobol_$debug_enable); 3 176 dcl cobol_$non_source_offset fixed bin ext; 3 177 dcl non_source_offset fixed bin defined (cobol_$non_source_offset); 3 178 dcl cobol_$initval_flag fixed bin ext; 3 179 dcl initval_flag fixed bin defined (cobol_$initval_flag); 3 180 dcl cobol_$date_compiled_sw fixed bin ext; 3 181 dcl date_compiled_sw fixed bin defined (cobol_$date_compiled_sw); 3 182 dcl cobol_$include_cnt fixed bin ext; 3 183 dcl include_cnt fixed bin defined (cobol_$include_cnt); 3 184 dcl cobol_$fs_charcnt fixed bin ext; 3 185 dcl fs_charcnt fixed bin defined (cobol_$fs_charcnt); 3 186 dcl cobol_$ws_charcnt fixed bin ext; 3 187 dcl ws_charcnt fixed bin defined (cobol_$ws_charcnt); 3 188 dcl cobol_$coms_charcnt fixed bin ext; 3 189 dcl coms_charcnt fixed bin defined (cobol_$coms_charcnt); 3 190 dcl cobol_$ls_charcnt fixed bin ext; 3 191 dcl ls_charcnt fixed bin defined (cobol_$ls_charcnt); 3 192 dcl cobol_$cons_charcnt fixed bin ext; 3 193 dcl cons_charcnt fixed bin defined (cobol_$cons_charcnt); 3 194 dcl cobol_$value_cnt fixed bin ext; 3 195 dcl value_cnt fixed bin defined (cobol_$value_cnt); 3 196 dcl cobol_$cd_cnt fixed bin ext; 3 197 dcl cd_cnt fixed bin defined (cobol_$cd_cnt); 3 198 dcl cobol_$fs_wdoff fixed bin ext; 3 199 dcl fs_wdoff fixed bin defined (cobol_$fs_wdoff); 3 200 dcl cobol_$ws_wdoff fixed bin ext; 3 201 dcl ws_wdoff fixed bin defined (cobol_$ws_wdoff); 3 202 dcl cobol_$coms_wdoff fixed bin ext; 3 203 dcl coms_wdoff fixed bin defined (cobol_$coms_wdoff); 3 204 3 205 /* CHARACTER */ 3 206 dcl cobol_$scratch_dir char (168) aligned ext; 3 207 dcl scratch_dir char (168) aligned defined (cobol_$scratch_dir); /* -42- */ 3 208 dcl cobol_$obj_seg_name char (32) aligned ext; 3 209 dcl obj_seg_name char (32) aligned defined (cobol_$obj_seg_name); /* -8- */ 3 210 3 211 /* BIT */ 3 212 dcl cobol_$xref_bypass bit(1) aligned ext; 3 213 dcl xref_bypass bit(1) aligned defined (cobol_$xref_bypass); /* -1- */ 3 214 dcl cobol_$same_sort_merge_proc bit(1) aligned ext; 3 215 dcl same_sort_merge_proc bit(1) aligned defined (cobol_$same_sort_merge_proc); /* -1- */ 3 216 3 217 3 218 /* END INCLUDE FILE ... cobol_incl.pl1*/ 3 219 3 220 105 4 1 4 2 /* BEGIN INCLUDE FILE ... cobol_fixed_common.incl.pl1 */ 4 3 /* Modified on 10/27/82 by FCH, [5.1-1], cobol_cln added to save last line num, BUG543(phx13643) */ 4 4 /* Modified on 07/31/80 by FCH, [4.3-1], use_reporting field added for Report Writer */ 4 5 /* Modified on 03/30/79 by FCH, [4.1-1], -card option added */ 4 6 /* Modified on 03/30/79 by FCH, [4.0-2], -svNM option added */ 4 7 /* Modified on 03/02/79 by FCH, [4.0-1], -levNM option added */ 4 8 /* Modified by RAL on 10/13/78, [4.0-0], Added option exp from fil2. */ 4 9 /* Modified by BC on 06/20/77, descriptor added. */ 4 10 /* Modified by BC on 06/02/77, init_cd_seg, init_cd_offset added. */ 4 11 /* Modified by BC on 1/21/77, options.profile added. */ 4 12 /* Modified by FCH on 7/6/76, sysin_fno & sysout_fno deleted, accept_device & display_device added */ 4 13 /* Modified by FCH on 5/20/77, comp_level added */ 4 14 4 15 4 16 /* THE SIZE OF THIS STRUCTURE IN BYTES, (EXCLUDING VARIABLE 4 17* LENGTH ENTITIES), FOR EACH HARDWARE IMPLEMENTATION IS: 4 18* 4 19* HARDWARE | SIZE (BYTES) 4 20* --------------------------------- 4 21* 645/6180 | 464 4 22* P7 | 396 4 23* --------------------------------- 4 24* */ 4 25 4 26 dcl 1 fixed_common based ( cobol_com_ptr), 4 27 2 prog_name char (30), 4 28 2 compiler_rev_no char (25), 4 29 2 phase_name char (6), 4 30 2 currency char (1), 4 31 2 fatal_no fixed bin, 4 32 2 warn_no fixed bin, 4 33 2 proc_counter fixed bin, 4 34 2 spec_tag_counter fixed bin, 4 35 2 file_count fixed bin, 4 36 2 filedescr_offsets (20) char (5), 4 37 2 perf_alter_info char (5), 4 38 2 another_perform_info char (5), 4 39 2 sort_in_info char (5), 4 40 2 odo_info char (5), 4 41 2 size_seg fixed bin, 4 42 2 size_offset fixed bin(24), 4 43 2 size_perform_info char (5), 4 44 2 rename_info char (5), 4 45 2 report_names char (5), 4 46 2 rw_buf_seg fixed bin, 4 47 2 rw_buf_offset fixed bin(24), 4 48 2 rw_buf_length fixed bin(24), 4 49 2 file_keys char (5), 4 50 2 search_keys char (5), 4 51 2 dd_seg_size fixed bin(24), 4 52 2 pd_seg_size fixed bin(24), 4 53 2 seg_limit fixed bin , 4 54 2 number_of_dd_segs fixed bin, 4 55 2 seg_info char (5), 4 56 2 number_of_ls_pointers fixed bin, 4 57 2 link_sec_seg fixed bin, 4 58 2 link_sec_offset fixed bin(24), 4 59 2 sra_clauses fixed bin, 4 60 2 fix_up_info char (5), 4 61 2 linage_info char (5), 4 62 2 first_dd_item char (5), 4 63 2 sort_out_info char (5), 4 64 2 db_info char (5), 4 65 2 realm_info char (5), 4 66 2 rc_realm_info char (5), 4 67 2 last_file_key char (5), 4 68 2 prog_coll_seq fixed bin, 4 69 2 init_cd_seg fixed bin, 4 70 2 init_cd_offset fixed bin(24), 4 71 2 input_error_exit fixed bin, 4 72 2 output_error_exit fixed bin, 4 73 2 i_o_error_exit fixed bin, 4 74 2 extend_error_exit fixed bin, 4 75 2 dummy15 fixed bin, 4 76 2 options, 4 77 3 cu bit (1), 4 78 3 st bit (1), 4 79 3 wn bit (1), 4 80 3 obs bit (1), 4 81 3 dm bit (1), 4 82 3 xrl bit (1), 4 83 3 xrn bit (1), 4 84 3 src bit (1), 4 85 3 obj bit (1), 4 86 3 exs bit (1), 4 87 3 sck bit (1), 4 88 3 rno bit (1), 4 89 3 u_l bit (1), 4 90 3 cnv bit (1), 4 91 3 cos bit (1), 4 92 3 fmt bit (1), 4 93 3 profile bit(1), 4 94 3 nw bit (1), 4 95 3 exp bit (1), /* [4.0-0] */ 4 96 3 card bit (1), /*[4.1-1]*/ 4 97 3 fil2 bit (5), 4 98 3 m_map bit (1), 4 99 3 m_bf bit (1), 4 100 3 m_fat bit (1), 4 101 3 m_wn bit (1), 4 102 3 m_obs bit(1), 4 103 3 pd bit(1), 4 104 3 oc bit(1), 4 105 2 supervisor bit (1), 4 106 2 dec_comma bit (1), 4 107 2 init_cd bit (1), 4 108 2 corr bit (1), 4 109 2 initl bit (1), 4 110 2 debug bit (1), 4 111 2 report bit (1), 4 112 2 sync_in_prog bit (1), 4 113 2 pd_section bit (1), 4 114 2 list_switch bit (1), 4 115 2 alpha_cond bit (1), 4 116 2 num_cond bit (1), 4 117 2 spec_sysin bit (1), 4 118 2 spec_sysout bit (1), 4 119 2 cpl_files bit (1), 4 120 2 obj_dec_comma bit (1), 4 121 2 default_sign_type bit (3), 4 122 2 use_debug bit(1), 4 123 2 syntax_trace bit(1), 4 124 2 comp_defaults, 4 125 3 comp bit(1), 4 126 3 comp_1 bit(1), 4 127 3 comp_2 bit(1), 4 128 3 comp_3 bit(1), 4 129 3 comp_4 bit(1), 4 130 3 comp_5 bit(1), 4 131 3 comp_6 bit(1), 4 132 3 comp_7 bit(1), 4 133 3 comp_8 bit(1), 4 134 2 disp_defaults, 4 135 3 disp bit(1), 4 136 3 disp_1 bit(1), 4 137 3 disp_2 bit(1), 4 138 3 disp_3 bit(1), 4 139 3 disp_4 bit(1), 4 140 3 disp_5 bit(1), 4 141 3 disp_6 bit(1), 4 142 3 disp_7 bit(1), 4 143 2 descriptor bit(2), 4 144 2 levsv bit(3), /*[4.0-1]*/ 4 145 2 use_reporting bit(1), /*[4.3-1]*/ 4 146 2 cd bit(1), /*[4.4-1]*/ 4 147 2 dummy17 bit(3), 4 148 2 lvl_rstr bit(32), 4 149 2 inst_rstr bit(32), 4 150 2 comp_level char(1), 4 151 2 dummy18 char(30), 4 152 2 object_sign char (1), 4 153 2 last_print_rec char (5), 4 154 2 coll_seq_info char (5), 4 155 2 sys_status_seg fixed bin, 4 156 2 sys_status_offset fixed bin(24), 4 157 2 compiler_id fixed bin, 4 158 2 date_comp_ln fixed bin, 4 159 2 compile_mode bit(36), 4 160 2 default_temp fixed bin, 4 161 2 accept_device fixed bin, 4 162 2 display_device fixed bin, 4 163 2 cobol_cln fixed bin, /*[5.1-1]*/ 4 164 2 alphabet_offset fixed bin; 4 165 4 166 4 167 4 168 /* END INCLUDE FILE ... cobol_fixed_common.incl.pl1 */ 4 169 106 5 1 5 2 /* BEGIN INCLUDE FILE ... cobol_ext_.incl.pl1 */ 5 3 /* Last modified on 06/17/76 by ORN */ 5 4 /* Last modified on 12/28/76 by FCH */ 5 5 /* Last modified on 12/01/80 by FCH */ 5 6 5 7 /* <<< SHARED EXTERNALS INCLUDE FILE >>> */ 5 8 5 9 5 10 dcl cobol_ext_$cobol_afp ptr ext; 5 11 dcl cobol_afp ptr defined ( cobol_ext_$cobol_afp); 5 12 dcl cobol_ext_$cobol_analin_fileno ptr ext; 5 13 dcl cobol_analin_fileno ptr defined ( cobol_ext_$cobol_analin_fileno); 5 14 dcl cobol_ext_$report_first_token ptr ext; 5 15 dcl report_first_token ptr defined( cobol_ext_$report_first_token); 5 16 dcl cobol_ext_$report_last_token ptr ext; 5 17 dcl report_last_token ptr defined ( cobol_ext_$report_last_token); 5 18 dcl cobol_ext_$cobol_eltp ptr ext; 5 19 dcl cobol_eltp ptr defined ( cobol_ext_$cobol_eltp); 5 20 dcl cobol_ext_$cobol_cmfp ptr ext; 5 21 dcl cobol_cmfp ptr defined ( cobol_ext_$cobol_cmfp); 5 22 dcl cobol_ext_$cobol_com_fileno ptr ext; 5 23 dcl cobol_com_fileno ptr defined ( cobol_ext_$cobol_com_fileno); 5 24 dcl cobol_ext_$cobol_com_ptr ptr ext; 5 25 dcl cobol_com_ptr ptr defined ( cobol_ext_$cobol_com_ptr); 5 26 dcl cobol_ext_$cobol_dfp ptr ext; 5 27 dcl cobol_dfp ptr defined ( cobol_ext_$cobol_dfp); 5 28 dcl cobol_ext_$cobol_hfp ptr ext; 5 29 dcl cobol_hfp ptr defined ( cobol_ext_$cobol_hfp); 5 30 dcl cobol_ext_$cobol_m1fp ptr ext; 5 31 dcl cobol_m1fp ptr defined ( cobol_ext_$cobol_m1fp); 5 32 dcl cobol_ext_$cobol_m2fp ptr ext; 5 33 dcl cobol_m2fp ptr defined ( cobol_ext_$cobol_m2fp); 5 34 dcl cobol_ext_$cobol_min1_fileno ptr ext; 5 35 dcl cobol_min1_fileno ptr defined ( cobol_ext_$cobol_min1_fileno); 5 36 dcl cobol_ext_$cobol_min2_fileno_ptr ptr ext; 5 37 dcl cobol_min2_fileno_ptr ptr defined ( cobol_ext_$cobol_min2_fileno_ptr); 5 38 dcl cobol_ext_$cobol_name_fileno ptr ext; 5 39 dcl cobol_name_fileno ptr defined ( cobol_ext_$cobol_name_fileno); 5 40 dcl cobol_ext_$cobol_name_fileno_ptr ptr ext; 5 41 dcl cobol_name_fileno_ptr ptr defined ( cobol_ext_$cobol_name_fileno_ptr); 5 42 dcl cobol_ext_$cobol_ntfp ptr ext; 5 43 dcl cobol_ntfp ptr defined ( cobol_ext_$cobol_ntfp); 5 44 dcl cobol_ext_$cobol_pdofp ptr ext; 5 45 dcl cobol_pdofp ptr defined ( cobol_ext_$cobol_pdofp); 5 46 dcl cobol_ext_$cobol_pfp ptr ext; 5 47 dcl cobol_pfp ptr defined ( cobol_ext_$cobol_pfp); 5 48 dcl cobol_ext_$cobol_rm2fp ptr ext; 5 49 dcl cobol_rm2fp ptr defined ( cobol_ext_$cobol_rm2fp); 5 50 dcl cobol_ext_$cobol_rmin2fp ptr ext; 5 51 dcl cobol_rmin2fp ptr defined ( cobol_ext_$cobol_rmin2fp); 5 52 dcl cobol_ext_$cobol_curr_in ptr ext; 5 53 dcl cobol_curr_in ptr defined ( cobol_ext_$cobol_curr_in); 5 54 dcl cobol_ext_$cobol_curr_out ptr ext; 5 55 dcl cobol_curr_out ptr defined ( cobol_ext_$cobol_curr_out); 5 56 dcl cobol_ext_$cobol_sfp ptr ext; 5 57 dcl cobol_sfp ptr defined ( cobol_ext_$cobol_sfp); 5 58 dcl cobol_ext_$cobol_w1p ptr ext; 5 59 dcl cobol_w1p ptr defined ( cobol_ext_$cobol_w1p); 5 60 dcl cobol_ext_$cobol_w2p ptr ext; 5 61 dcl cobol_w2p ptr defined ( cobol_ext_$cobol_w2p); 5 62 dcl cobol_ext_$cobol_w3p ptr ext; 5 63 dcl cobol_w3p ptr defined ( cobol_ext_$cobol_w3p); 5 64 dcl cobol_ext_$cobol_w5p ptr ext; 5 65 dcl cobol_w5p ptr defined ( cobol_ext_$cobol_w5p); 5 66 dcl cobol_ext_$cobol_w6p ptr ext; 5 67 dcl cobol_w6p ptr defined ( cobol_ext_$cobol_w6p); 5 68 dcl cobol_ext_$cobol_w7p ptr ext; 5 69 dcl cobol_w7p ptr defined ( cobol_ext_$cobol_w7p); 5 70 dcl cobol_ext_$cobol_x3fp ptr ext; 5 71 dcl cobol_x3fp ptr defined ( cobol_ext_$cobol_x3fp); 5 72 dcl cobol_ext_$cobol_rwdd ptr ext; 5 73 dcl cobol_rwdd ptr defined(cobol_ext_$cobol_rwdd); 5 74 dcl cobol_ext_$cobol_rwpd ptr ext; 5 75 dcl cobol_rwpd ptr defined(cobol_ext_$cobol_rwpd); 5 76 5 77 5 78 dcl cobol_ext_$cobol_fileno1 fixed bin(24)ext; 5 79 dcl cobol_fileno1 fixed bin(24)defined ( cobol_ext_$cobol_fileno1); 5 80 dcl cobol_ext_$cobol_options_len fixed bin(24)ext; 5 81 dcl cobol_options_len fixed bin(24)defined ( cobol_ext_$cobol_options_len); 5 82 dcl cobol_ext_$cobol_pdout_fileno fixed bin(24)ext; 5 83 dcl cobol_pdout_fileno fixed bin(24)defined ( cobol_ext_$cobol_pdout_fileno); 5 84 dcl cobol_ext_$cobol_print_fileno fixed bin(24)ext; 5 85 dcl cobol_print_fileno fixed bin(24)defined ( cobol_ext_$cobol_print_fileno); 5 86 dcl cobol_ext_$cobol_rmin2_fileno fixed bin(24)ext; 5 87 dcl cobol_rmin2_fileno fixed bin(24)defined ( cobol_ext_$cobol_rmin2_fileno); 5 88 dcl cobol_ext_$cobol_x1_fileno fixed bin(24)ext; 5 89 dcl cobol_x1_fileno fixed bin(24)defined ( cobol_ext_$cobol_x1_fileno); 5 90 dcl cobol_ext_$cobol_x2_fileno fixed bin(24)ext; 5 91 dcl cobol_x2_fileno fixed bin(24)defined ( cobol_ext_$cobol_x2_fileno); 5 92 dcl cobol_ext_$cobol_x3_fileno fixed bin(24)ext; 5 93 dcl cobol_x3_fileno fixed bin(24)defined ( cobol_ext_$cobol_x3_fileno); 5 94 5 95 dcl cobol_ext_$cobol_lpr char (5) ext; 5 96 dcl cobol_lpr char (5) defined ( cobol_ext_$cobol_lpr); /* -2- */ 5 97 dcl cobol_ext_$cobol_options char (120) ext; 5 98 dcl cobol_options char (120) defined ( cobol_ext_$cobol_options); /* -30- */ 5 99 5 100 dcl cobol_ext_$cobol_xlast8 bit (1) ext; 5 101 dcl cobol_xlast8 bit (1) defined ( cobol_ext_$cobol_xlast8); /* -1- */ 5 102 dcl cobol_ext_$report_exists bit (1) ext; 5 103 dcl report_exists bit (1) defined ( cobol_ext_$report_exists); 5 104 5 105 5 106 /* <<< END OF SHARED EXTERNALS INCLUDE FILE >>> */ 5 107 /* END INCLUDE FILE ... cobol_ext_.incl.pl1 */ 5 108 107 108 109 110 /*************************************/ 111 start: /* UPDATE link_wd_off AND TEST AGAINST link_max */ 112 /* Number of words occupied by header plus static data is 8 */ 113 /* plus number of words in stat. If the trace_control_word */ 114 /* falls on an even word boundary (no_wds odd), no_wds is in- */ 115 /* creased by 1 so that links which follow will be on even */ 116 /* word boundaries, as required. */ 117 stat_ptr = addrel (link_base_ptr, 8); /* Modified to interface with cobol run time package. */ 118 /* no_wds=binary(rel(addr(stat.reserved(16))),17)+1; 119*/* no_wds = no_wds-binary(rel(cobol_$link_base_ptr),17); 120*/* if substr(unspec(no_wds),36,1) = "1"b 121*/* then 122*/* no_wds = no_wds+1; 123*/**/ 124 no_wds = fixed_static_length + 8; 125 link_wd_off = no_wds; /* if link_wd_off > link_max 126*/* then do; 127*/* call signal_("command_abort_",null(),addr(error_s)); 128*/* return; 129*/* end; 130*/**/ 131 132 /* INITIALIZE LINKAGE SECTION HEADER */ 133 134 pad = (36)"0"b; 135 136 /* def_section_relp not initialized by cobol_link_init */ 137 138 first_reference_relp = (18)"0"b; 139 140 unspec (obsolete_ptr) = (36)"0"b; /* [3.0-1] */ 141 142 unspec (original_linkage_ptr) = (36)"0"b; /* [3.0-1] */ 143 144 links_relp = substr (unspec (no_wds), 19, 18); 145 146 /* linkage_section_length not initialized by cobol_link_init */ 147 148 object_seg = (18)"0"b; 149 150 obsolete_length = (18)"0"b; 151 152 153 /* INITIALIZE FIXED INTERNAL STATIC DATA */ 154 155 156 stat.data_ptr = null (); 157 158 stat.control_ptr = null (); 159 160 stat.file_info_ptr = null (); 161 162 stat.call_cnt = -1; 163 164 /* data_len not initialized by cobol_link_init */ 165 166 stat.entry_pt_ptr = null (); 167 168 stat.prog_id_len = search (fixed_common.prog_name, " ") - 1; 169 170 if stat.prog_id_len = -1 171 then stat.prog_id_len = 30; 172 173 stat.prog_id = fixed_common.prog_name; 174 175 stat.line_no (1), stat.line_no (2) = 0; 176 177 stat.fo_flag = 0; 178 179 stat.fo_disp = 0; 180 181 stat.main_prog_sw = 0; 182 183 184 trace_control_word = 0; 185 186 187 /* OUTPUT RELOCATION INFORMATION */ 188 189 /* First Two Words of Header */ 190 191 call cobol_reloc (addr (reloc_info), 4, 3002); 192 193 /* Remainder of Header and Fixed Internal Static Data */ 194 195 call cobol_reloc (null (), no_wds * 2 - 4, 3002); 196 197 198 /* INITIALIZATION COMPLETE */ 199 200 201 exit: 202 return; 203 204 end cobol_link_init; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 05/24/89 0830.6 cobol_link_init.pl1 >spec>install>MR12.3-1048>cobol_link_init.pl1 68 1 03/27/82 0439.4 cobol_linkage_header.incl.pl1 >ldd>include>cobol_linkage_header.incl.pl1 71 2 10/10/83 1730.8 cobol_fixed_static.incl.pl1 >ldd>include>cobol_fixed_static.incl.pl1 105 3 11/11/82 1712.7 cobol_.incl.pl1 >ldd>include>cobol_.incl.pl1 106 4 11/11/82 1712.8 cobol_fixed_common.incl.pl1 >ldd>include>cobol_fixed_common.incl.pl1 107 5 03/27/82 0431.3 cobol_ext_.incl.pl1 >ldd>include>cobol_ext_.incl.pl1 NAMES DECLARED IN THIS COMPILATION. IDENTIFIER OFFSET LOC STORAGE CLASS DATA TYPE ATTRIBUTES AND REFERENCES (* indicates a set context) NAMES DECLARED BY DECLARE STATEMENT. addr builtin function dcl 96 ref 191 191 addrel builtin function dcl 97 ref 111 call_cnt 6 based fixed bin(17,0) level 2 dcl 2-23 set ref 162* cobol_$link_base_ptr 000016 external static pointer dcl 3-14 ref 111 111 134 134 138 138 140 140 142 142 144 144 148 148 150 150 cobol_$link_wd_off 000020 external static fixed bin(17,0) dcl 3-98 set ref 125* 125 cobol_com_ptr defined pointer dcl 5-25 ref 168 173 cobol_ext_$cobol_com_ptr 000022 external static pointer dcl 5-24 ref 168 168 173 173 cobol_reloc 000014 constant entry external dcl 89 ref 191 195 control_ptr 2 based pointer level 2 dcl 2-23 set ref 158* data_ptr based pointer level 2 dcl 2-23 set ref 156* entry_pt_ptr 10 based pointer level 2 dcl 2-23 set ref 166* file_info_ptr 4 based pointer level 2 dcl 2-23 set ref 160* first_reference_relp 1(18) based bit(18) level 2 packed packed unaligned dcl 1-9 set ref 138* fixed_common based structure level 1 unaligned dcl 4-26 fixed_static_length constant fixed bin(17,0) initial dcl 2-51 ref 124 fo_disp 37 based fixed bin(17,0) level 2 dcl 2-23 set ref 179* fo_flag 36 based fixed bin(17,0) level 2 dcl 2-23 set ref 177* line_no 34 based fixed bin(17,0) array level 2 dcl 2-23 set ref 175* 175* link_base_ptr defined pointer dcl 3-15 ref 111 134 138 140 142 144 148 150 link_wd_off defined fixed bin(17,0) dcl 3-99 set ref 125* linkage_header based structure level 1 dcl 1-9 links_relp 6 based bit(18) level 2 packed packed unaligned dcl 1-9 set ref 144* main_prog_sw 40 based fixed bin(17,0) level 2 dcl 2-23 set ref 181* no_wds 000102 automatic fixed bin(17,0) dcl 80 set ref 124* 125 144 195 null builtin function dcl 99 ref 156 158 160 166 195 195 object_seg 7 based bit(18) level 2 packed packed unaligned dcl 1-9 set ref 148* obsolete_length 7(18) based bit(18) level 2 packed packed unaligned dcl 1-9 set ref 150* obsolete_ptr 2 based pointer level 2 packed packed unaligned dcl 1-9 set ref 140* original_linkage_ptr 3 based pointer level 2 packed packed unaligned dcl 1-9 set ref 142* pad based bit(36) level 2 dcl 1-9 set ref 134* prog_id 13 based char(65) level 2 dcl 2-23 set ref 173* prog_id_len 12 based fixed bin(17,0) level 2 dcl 2-23 set ref 168* 170 170* prog_name based char(30) level 2 packed packed unaligned dcl 4-26 ref 168 173 reloc_info 000010 internal static bit(5) initial array dcl 78 set ref 191 191 search builtin function dcl 101 ref 168 stat based structure level 1 dcl 2-23 stat_ptr 000100 automatic pointer dcl 2-22 set ref 111* 156 158 160 162 166 168 170 170 173 175 175 177 179 181 184 substr builtin function dcl 102 ref 144 trace_control_word 67 based fixed bin(17,0) level 2 dcl 2-23 set ref 184* unspec builtin function dcl 103 set ref 140* 142* 144 NAMES DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. allo1_max defined fixed bin(17,0) dcl 3-171 allo1_ptr defined pointer dcl 3-67 alter_flag defined fixed bin(17,0) dcl 3-135 alter_index defined fixed bin(17,0) dcl 3-153 alter_list_ptr defined pointer dcl 3-39 binary builtin function dcl 98 cd_cnt defined fixed bin(17,0) dcl 3-197 cobol_$allo1_max external static fixed bin(17,0) dcl 3-170 cobol_$allo1_ptr external static pointer dcl 3-66 cobol_$alter_flag external static fixed bin(17,0) dcl 3-134 cobol_$alter_index external static fixed bin(17,0) dcl 3-152 cobol_$alter_list_ptr external static pointer dcl 3-38 cobol_$cd_cnt external static fixed bin(17,0) dcl 3-196 cobol_$cobol_data_wd_off external static fixed bin(17,0) dcl 3-118 cobol_$compile_count external static fixed bin(17,0) dcl 3-142 cobol_$coms_charcnt external static fixed bin(17,0) dcl 3-188 cobol_$coms_wdoff external static fixed bin(17,0) dcl 3-202 cobol_$con_end_ptr external static pointer dcl 3-10 cobol_$con_wd_off external static fixed bin(17,0) dcl 3-92 cobol_$cons_charcnt external static fixed bin(17,0) dcl 3-192 cobol_$constant_offset external static fixed bin(17,0) dcl 3-156 cobol_$data_init_flag external static fixed bin(17,0) dcl 3-130 cobol_$date_compiled_sw external static fixed bin(17,0) dcl 3-180 cobol_$debug_enable external static fixed bin(17,0) dcl 3-174 cobol_$def_base_ptr external static pointer dcl 3-12 cobol_$def_max external static fixed bin(17,0) dcl 3-96 cobol_$def_wd_off external static fixed bin(17,0) dcl 3-94 cobol_$diag_ptr external static pointer dcl 3-70 cobol_$eln_max external static fixed bin(17,0) dcl 3-172 cobol_$eln_ptr external static pointer dcl 3-68 cobol_$fixup_max external static fixed bin(17,0) dcl 3-164 cobol_$fixup_ptr external static pointer dcl 3-30 cobol_$fs_charcnt external static fixed bin(17,0) dcl 3-184 cobol_$fs_wdoff external static fixed bin(17,0) dcl 3-198 cobol_$include_cnt external static fixed bin(17,0) dcl 3-182 cobol_$include_info_ptr external static pointer dcl 3-86 cobol_$init_stack_off external static fixed bin(17,0) dcl 3-124 cobol_$initval_base_ptr external static pointer dcl 3-32 cobol_$initval_file_ptr external static pointer dcl 3-34 cobol_$initval_flag external static fixed bin(17,0) dcl 3-178 cobol_$link_max external static fixed bin(17,0) dcl 3-100 cobol_$list_off external static fixed bin(17,0) dcl 3-154 cobol_$list_ptr external static pointer dcl 3-64 cobol_$ls_charcnt external static fixed bin(17,0) dcl 3-190 cobol_$main_pcs_ptr external static pointer dcl 3-84 cobol_$map_data_max external static fixed bin(17,0) dcl 3-162 cobol_$map_data_ptr external static pointer dcl 3-54 cobol_$max_stack_off external static fixed bin(17,0) dcl 3-122 cobol_$minpral5_ptr external static pointer dcl 3-50 cobol_$misc_base_ptr external static pointer dcl 3-60 cobol_$misc_end_ptr external static pointer dcl 3-62 cobol_$misc_max external static fixed bin(17,0) dcl 3-158 cobol_$next_tag external static fixed bin(17,0) dcl 3-128 cobol_$non_source_offset external static fixed bin(17,0) dcl 3-176 cobol_$ntbuf_ptr external static pointer dcl 3-82 cobol_$obj_seg_name external static char(32) dcl 3-208 cobol_$op_con_ptr external static pointer dcl 3-80 cobol_$para_eop_flag external static fixed bin(17,0) dcl 3-138 cobol_$pd_map_index external static fixed bin(17,0) dcl 3-116 cobol_$pd_map_max external static fixed bin(17,0) dcl 3-160 cobol_$pd_map_ptr external static pointer dcl 3-28 cobol_$pd_map_sw external static fixed bin(17,0) dcl 3-126 cobol_$perform_list_ptr external static pointer dcl 3-36 cobol_$perform_para_index external static fixed bin(17,0) dcl 3-148 cobol_$perform_sect_index external static fixed bin(17,0) dcl 3-150 cobol_$priority_no external static fixed bin(17,0) dcl 3-140 cobol_$ptr_assumption_ind external static fixed bin(17,0) dcl 3-144 cobol_$ptr_status_ptr external static pointer dcl 3-56 cobol_$reg_assumption_ind external static fixed bin(17,0) dcl 3-146 cobol_$reg_status_ptr external static pointer dcl 3-58 cobol_$reloc_def_base_ptr external static pointer dcl 3-20 cobol_$reloc_def_max external static fixed bin(24,0) dcl 3-108 cobol_$reloc_link_base_ptr external static pointer dcl 3-22 cobol_$reloc_link_max external static fixed bin(24,0) dcl 3-110 cobol_$reloc_sym_base_ptr external static pointer dcl 3-24 cobol_$reloc_sym_max external static fixed bin(24,0) dcl 3-112 cobol_$reloc_text_base_ptr external static pointer dcl 3-18 cobol_$reloc_text_max external static fixed bin(24,0) dcl 3-106 cobol_$reloc_work_base_ptr external static pointer dcl 3-26 cobol_$reloc_work_max external static fixed bin(24,0) dcl 3-114 cobol_$reswd_ptr external static pointer dcl 3-78 cobol_$same_sort_merge_proc external static bit(1) dcl 3-214 cobol_$scratch_dir external static char(168) dcl 3-206 cobol_$sect_eop_flag external static fixed bin(17,0) dcl 3-136 cobol_$seg_init_flag external static fixed bin(17,0) dcl 3-132 cobol_$seg_init_list_ptr external static pointer dcl 3-40 cobol_$stack_off external static fixed bin(17,0) dcl 3-120 cobol_$statement_info_ptr external static pointer dcl 3-76 cobol_$sym_base_ptr external static pointer dcl 3-16 cobol_$sym_max external static fixed bin(17,0) dcl 3-104 cobol_$sym_wd_off external static fixed bin(17,0) dcl 3-102 cobol_$tag_table_max external static fixed bin(17,0) dcl 3-166 cobol_$tag_table_ptr external static pointer dcl 3-52 cobol_$temp_token_area_ptr external static pointer dcl 3-42 cobol_$temp_token_max external static fixed bin(17,0) dcl 3-168 cobol_$temp_token_ptr external static pointer dcl 3-44 cobol_$text_base_ptr external static pointer dcl 3-8 cobol_$text_wd_off external static fixed bin(17,0) dcl 3-90 cobol_$token_block1_ptr external static pointer dcl 3-46 cobol_$token_block2_ptr external static pointer dcl 3-48 cobol_$value_cnt external static fixed bin(17,0) dcl 3-194 cobol_$ws_charcnt external static fixed bin(17,0) dcl 3-186 cobol_$ws_wdoff external static fixed bin(17,0) dcl 3-200 cobol_$xref_bypass external static bit(1) dcl 3-212 cobol_$xref_chain_ptr external static pointer dcl 3-74 cobol_$xref_token_ptr external static pointer dcl 3-72 cobol_afp defined pointer dcl 5-11 cobol_analin_fileno defined pointer dcl 5-13 cobol_cmfp defined pointer dcl 5-21 cobol_com_fileno defined pointer dcl 5-23 cobol_curr_in defined pointer dcl 5-53 cobol_curr_out defined pointer dcl 5-55 cobol_data_wd_off defined fixed bin(17,0) dcl 3-119 cobol_dfp defined pointer dcl 5-27 cobol_eltp defined pointer dcl 5-19 cobol_ext_$cobol_afp external static pointer dcl 5-10 cobol_ext_$cobol_analin_fileno external static pointer dcl 5-12 cobol_ext_$cobol_cmfp external static pointer dcl 5-20 cobol_ext_$cobol_com_fileno external static pointer dcl 5-22 cobol_ext_$cobol_curr_in external static pointer dcl 5-52 cobol_ext_$cobol_curr_out external static pointer dcl 5-54 cobol_ext_$cobol_dfp external static pointer dcl 5-26 cobol_ext_$cobol_eltp external static pointer dcl 5-18 cobol_ext_$cobol_fileno1 external static fixed bin(24,0) dcl 5-78 cobol_ext_$cobol_hfp external static pointer dcl 5-28 cobol_ext_$cobol_lpr external static char(5) packed unaligned dcl 5-95 cobol_ext_$cobol_m1fp external static pointer dcl 5-30 cobol_ext_$cobol_m2fp external static pointer dcl 5-32 cobol_ext_$cobol_min1_fileno external static pointer dcl 5-34 cobol_ext_$cobol_min2_fileno_ptr external static pointer dcl 5-36 cobol_ext_$cobol_name_fileno external static pointer dcl 5-38 cobol_ext_$cobol_name_fileno_ptr external static pointer dcl 5-40 cobol_ext_$cobol_ntfp external static pointer dcl 5-42 cobol_ext_$cobol_options external static char(120) packed unaligned dcl 5-97 cobol_ext_$cobol_options_len external static fixed bin(24,0) dcl 5-80 cobol_ext_$cobol_pdofp external static pointer dcl 5-44 cobol_ext_$cobol_pdout_fileno external static fixed bin(24,0) dcl 5-82 cobol_ext_$cobol_pfp external static pointer dcl 5-46 cobol_ext_$cobol_print_fileno external static fixed bin(24,0) dcl 5-84 cobol_ext_$cobol_rm2fp external static pointer dcl 5-48 cobol_ext_$cobol_rmin2_fileno external static fixed bin(24,0) dcl 5-86 cobol_ext_$cobol_rmin2fp external static pointer dcl 5-50 cobol_ext_$cobol_rwdd external static pointer dcl 5-72 cobol_ext_$cobol_rwpd external static pointer dcl 5-74 cobol_ext_$cobol_sfp external static pointer dcl 5-56 cobol_ext_$cobol_w1p external static pointer dcl 5-58 cobol_ext_$cobol_w2p external static pointer dcl 5-60 cobol_ext_$cobol_w3p external static pointer dcl 5-62 cobol_ext_$cobol_w5p external static pointer dcl 5-64 cobol_ext_$cobol_w6p external static pointer dcl 5-66 cobol_ext_$cobol_w7p external static pointer dcl 5-68 cobol_ext_$cobol_x1_fileno external static fixed bin(24,0) dcl 5-88 cobol_ext_$cobol_x2_fileno external static fixed bin(24,0) dcl 5-90 cobol_ext_$cobol_x3_fileno external static fixed bin(24,0) dcl 5-92 cobol_ext_$cobol_x3fp external static pointer dcl 5-70 cobol_ext_$cobol_xlast8 external static bit(1) packed unaligned dcl 5-100 cobol_ext_$report_exists external static bit(1) packed unaligned dcl 5-102 cobol_ext_$report_first_token external static pointer dcl 5-14 cobol_ext_$report_last_token external static pointer dcl 5-16 cobol_fileno1 defined fixed bin(24,0) dcl 5-79 cobol_hfp defined pointer dcl 5-29 cobol_lpr defined char(5) packed unaligned dcl 5-96 cobol_m1fp defined pointer dcl 5-31 cobol_m2fp defined pointer dcl 5-33 cobol_min1_fileno defined pointer dcl 5-35 cobol_min2_fileno_ptr defined pointer dcl 5-37 cobol_name_fileno defined pointer dcl 5-39 cobol_name_fileno_ptr defined pointer dcl 5-41 cobol_ntfp defined pointer dcl 5-43 cobol_options defined char(120) packed unaligned dcl 5-98 cobol_options_len defined fixed bin(24,0) dcl 5-81 cobol_pdofp defined pointer dcl 5-45 cobol_pdout_fileno defined fixed bin(24,0) dcl 5-83 cobol_pfp defined pointer dcl 5-47 cobol_print_fileno defined fixed bin(24,0) dcl 5-85 cobol_rm2fp defined pointer dcl 5-49 cobol_rmin2_fileno defined fixed bin(24,0) dcl 5-87 cobol_rmin2fp defined pointer dcl 5-51 cobol_rwdd defined pointer dcl 5-73 cobol_rwpd defined pointer dcl 5-75 cobol_sfp defined pointer dcl 5-57 cobol_w1p defined pointer dcl 5-59 cobol_w2p defined pointer dcl 5-61 cobol_w3p defined pointer dcl 5-63 cobol_w5p defined pointer dcl 5-65 cobol_w6p defined pointer dcl 5-67 cobol_w7p defined pointer dcl 5-69 cobol_x1_fileno defined fixed bin(24,0) dcl 5-89 cobol_x2_fileno defined fixed bin(24,0) dcl 5-91 cobol_x3_fileno defined fixed bin(24,0) dcl 5-93 cobol_x3fp defined pointer dcl 5-71 cobol_xlast8 defined bit(1) packed unaligned dcl 5-101 compile_count defined fixed bin(17,0) dcl 3-143 coms_charcnt defined fixed bin(17,0) dcl 3-189 coms_wdoff defined fixed bin(17,0) dcl 3-203 con_end_ptr defined pointer dcl 3-11 con_wd_off defined fixed bin(17,0) dcl 3-93 cons_charcnt defined fixed bin(17,0) dcl 3-193 constant_offset defined fixed bin(17,0) dcl 3-157 data_init_flag defined fixed bin(17,0) dcl 3-131 date_compiled_sw defined fixed bin(17,0) dcl 3-181 debug_enable defined fixed bin(17,0) dcl 3-175 def_base_ptr defined pointer dcl 3-13 def_max defined fixed bin(17,0) dcl 3-97 def_wd_off defined fixed bin(17,0) dcl 3-95 diag_ptr defined pointer dcl 3-71 eln_max defined fixed bin(17,0) dcl 3-173 eln_ptr defined pointer dcl 3-69 error_s internal static structure level 1 dcl 73 first_link_offset internal static fixed bin(17,0) initial dcl 2-52 fixup_max defined fixed bin(17,0) dcl 3-165 fixup_ptr defined pointer dcl 3-31 fs_charcnt defined fixed bin(17,0) dcl 3-185 fs_wdoff defined fixed bin(17,0) dcl 3-199 include_cnt defined fixed bin(17,0) dcl 3-183 include_info_ptr defined pointer dcl 3-87 init_stack_off defined fixed bin(17,0) dcl 3-125 initval_base_ptr defined pointer dcl 3-33 initval_file_ptr defined pointer dcl 3-35 initval_flag defined fixed bin(17,0) dcl 3-179 link_max defined fixed bin(17,0) dcl 3-101 list_off defined fixed bin(17,0) dcl 3-155 list_ptr defined pointer dcl 3-65 ls_charcnt defined fixed bin(17,0) dcl 3-191 main_pcs_ptr defined pointer dcl 3-85 map_data_max defined fixed bin(17,0) dcl 3-163 map_data_ptr defined pointer dcl 3-55 max_stack_off defined fixed bin(17,0) dcl 3-123 minpral5_ptr defined pointer dcl 3-51 misc_base_ptr defined pointer dcl 3-61 misc_end_ptr defined pointer dcl 3-63 misc_max defined fixed bin(17,0) dcl 3-159 next_tag defined fixed bin(17,0) dcl 3-129 non_source_offset defined fixed bin(17,0) dcl 3-177 ntbuf_ptr defined pointer dcl 3-83 obj_seg_name defined char(32) dcl 3-209 op_con_ptr defined pointer dcl 3-81 para_eop_flag defined fixed bin(17,0) dcl 3-139 pd_map_index defined fixed bin(17,0) dcl 3-117 pd_map_max defined fixed bin(17,0) dcl 3-161 pd_map_ptr defined pointer dcl 3-29 pd_map_sw defined fixed bin(17,0) dcl 3-127 perform_list_ptr defined pointer dcl 3-37 perform_para_index defined fixed bin(17,0) dcl 3-149 perform_sect_index defined fixed bin(17,0) dcl 3-151 priority_no defined fixed bin(17,0) dcl 3-141 ptr_assumption_ind defined fixed bin(17,0) dcl 3-145 ptr_status_ptr defined pointer dcl 3-57 reg_assumption_ind defined fixed bin(17,0) dcl 3-147 reg_status_ptr defined pointer dcl 3-59 rel builtin function dcl 100 reloc_def_base_ptr defined pointer dcl 3-21 reloc_def_max defined fixed bin(24,0) dcl 3-109 reloc_link_base_ptr defined pointer dcl 3-23 reloc_link_max defined fixed bin(24,0) dcl 3-111 reloc_sym_base_ptr defined pointer dcl 3-25 reloc_sym_max defined fixed bin(24,0) dcl 3-113 reloc_text_base_ptr defined pointer dcl 3-19 reloc_text_max defined fixed bin(24,0) dcl 3-107 reloc_work_base_ptr defined pointer dcl 3-27 reloc_work_max defined fixed bin(24,0) dcl 3-115 report_exists defined bit(1) packed unaligned dcl 5-103 report_first_token defined pointer dcl 5-15 report_last_token defined pointer dcl 5-17 reswd_ptr defined pointer dcl 3-79 same_sort_merge_proc defined bit(1) dcl 3-215 scratch_dir defined char(168) dcl 3-207 sect_eop_flag defined fixed bin(17,0) dcl 3-137 seg_init_flag defined fixed bin(17,0) dcl 3-133 seg_init_list_ptr defined pointer dcl 3-41 signal_ 000000 constant entry external dcl 88 stack_off defined fixed bin(17,0) dcl 3-121 statement_info_ptr defined pointer dcl 3-77 sym_base_ptr defined pointer dcl 3-17 sym_max defined fixed bin(17,0) dcl 3-105 sym_wd_off defined fixed bin(17,0) dcl 3-103 tag_table_max defined fixed bin(17,0) dcl 3-167 tag_table_ptr defined pointer dcl 3-53 temp_token_area_ptr defined pointer dcl 3-43 temp_token_max defined fixed bin(17,0) dcl 3-169 temp_token_ptr defined pointer dcl 3-45 text_base_ptr defined pointer dcl 3-9 text_wd_off defined fixed bin(17,0) dcl 3-91 token_block1_ptr defined pointer dcl 3-47 token_block2_ptr defined pointer dcl 3-49 value_cnt defined fixed bin(17,0) dcl 3-195 ws_charcnt defined fixed bin(17,0) dcl 3-187 ws_wdoff defined fixed bin(17,0) dcl 3-201 xref_bypass defined bit(1) dcl 3-213 xref_chain_ptr defined pointer dcl 3-75 xref_token_ptr defined pointer dcl 3-73 NAMES DECLARED BY EXPLICIT CONTEXT. cobol_link_init 000003 constant entry external dcl 26 exit 000140 constant label dcl 201 start 000010 constant label dcl 111 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 426 452 342 436 Length 726 342 24 237 64 4 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME cobol_link_init 80 external procedure is an external procedure. STORAGE FOR INTERNAL STATIC VARIABLES. LOC IDENTIFIER BLOCK NAME 000010 reloc_info cobol_link_init STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME cobol_link_init 000100 stat_ptr cobol_link_init 000102 no_wds cobol_link_init THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. call_ext_out return_mac ext_entry THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. cobol_reloc THE FOLLOWING EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. cobol_$link_base_ptr cobol_$link_wd_off cobol_ext_$cobol_com_ptr LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 26 000002 111 000010 124 000014 125 000016 134 000017 138 000021 140 000024 142 000025 144 000026 148 000031 150 000033 156 000035 158 000037 160 000040 162 000041 166 000043 168 000045 170 000060 173 000064 175 000067 177 000071 179 000072 181 000073 184 000074 191 000075 195 000115 201 000140 ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved