Browse Source

- 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 years ago
parent
commit
fbc97cc426
1 changed files with 0 additions and 3 deletions
  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
           the data sections }
         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]);
         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);
         while assigned(R) do
           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 }
             if assigned(R.value) and (R.len<>0) then
               valuelab:=tcb.emit_ansistring_const(current_asmdata.asmlists[al_const],R.Value,R.Len,getansistringcodepage)