浏览代码

- removed new object/section commands for the al_const list when emitting
resourcestrings, as this is already handled by the typed constant
builder

git-svn-id: trunk@32392 -

Jonas Maebe 9 年之前
父节点
当前提交
fbc97cc426
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      compiler/cresstr.pas

+ 0 - 3
compiler/cresstr.pas

@@ -142,8 +142,6 @@ uses
           makes the linking too dependent on the linker script requiring a SORT(*) for
           makes the linking too dependent on the linker script requiring a SORT(*) for
           the data sections }
           the data sections }
         tcb:=ctai_typedconstbuilder.create([tcalo_make_dead_strippable,tcalo_new_section]);
         tcb:=ctai_typedconstbuilder.create([tcalo_make_dead_strippable,tcalo_new_section]);
-        maybe_new_object_file(current_asmdata.asmlists[al_const]);
-        new_section(current_asmdata.asmlists[al_const],sec_rodata_norel,make_mangledname('RESSTRTABLE',current_module.localsymtable,''),sizeof(pint));
 
 
         maybe_new_object_file(current_asmdata.asmlists[al_resourcestrings]);
         maybe_new_object_file(current_asmdata.asmlists[al_resourcestrings]);
         new_section(current_asmdata.asmlists[al_resourcestrings],sec_data,make_mangledname('RESSTR',current_module.localsymtable,'1_START'),sizeof(pint));
         new_section(current_asmdata.asmlists[al_resourcestrings],sec_data,make_mangledname('RESSTR',current_module.localsymtable,'1_START'),sizeof(pint));
@@ -163,7 +161,6 @@ uses
         R:=TResourceStringItem(List.First);
         R:=TResourceStringItem(List.First);
         while assigned(R) do
         while assigned(R) do
           begin
           begin
-            new_section(current_asmdata.asmlists[al_const],sec_rodata_norel,make_mangledname('RESSTR',current_module.localsymtable,'d_'+r.name),sizeof(pint));
             { Write default value }
             { Write default value }
             if assigned(R.value) and (R.len<>0) then
             if assigned(R.value) and (R.len<>0) then
               valuelab:=tcb.emit_ansistring_const(current_asmdata.asmlists[al_const],R.Value,R.Len,getansistringcodepage)
               valuelab:=tcb.emit_ansistring_const(current_asmdata.asmlists[al_const],R.Value,R.Len,getansistringcodepage)