diff --git a/compiler/cresstr.pas b/compiler/cresstr.pas index eaad969c36..a0a08172e0 100644 --- a/compiler/cresstr.pas +++ b/compiler/cresstr.pas @@ -139,10 +139,10 @@ uses R : TResourceStringItem; begin { Put resourcestrings in a new objectfile. Putting it in multiple files - makes the linking too dependent on the linker script requiring a SORT(*) for - the data sections } + makes the linking too dependent on the linker script requiring a SORT(*) for + the data sections } maybe_new_object_file(current_asmdata.asmlists[al_const]); - new_section(current_asmdata.asmlists[al_const],sec_data,make_mangledname('RESSTRTABLE',current_module.localsymtable,''),sizeof(pint)); + 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));