mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
* specify AT_DATA when refering to the 'RESSTR' symbols; among other things,
this fixes resourcestring constants in the i8086 memory model. git-svn-id: trunk@25796 -
This commit is contained in:
parent
ea1370a89e
commit
7ff97d9b7d
@ -292,7 +292,7 @@ implementation
|
||||
if tconstsym(symtableentry).consttyp=constresourcestring then
|
||||
begin
|
||||
location_reset_ref(location,LOC_CREFERENCE,OS_ADDR,sizeof(pint));
|
||||
location.reference.symbol:=current_asmdata.RefAsmSymbol(make_mangledname('RESSTR',symtableentry.owner,symtableentry.name));
|
||||
location.reference.symbol:=current_asmdata.RefAsmSymbol(make_mangledname('RESSTR',symtableentry.owner,symtableentry.name),AT_DATA);
|
||||
{ Resourcestring layout:
|
||||
TResourceStringRecord = Packed Record
|
||||
Name,
|
||||
|
@ -491,7 +491,7 @@ function get_next_varsym(def: tabstractrecorddef; const SymList:TFPHashObjectLis
|
||||
begin
|
||||
current_asmdata.ResStrInits.Concat(
|
||||
TTCInitItem.Create(tcsym,curoffset,
|
||||
current_asmdata.RefAsmSymbol(make_mangledname('RESSTR',hsym.owner,hsym.name)))
|
||||
current_asmdata.RefAsmSymbol(make_mangledname('RESSTR',hsym.owner,hsym.name),AT_DATA))
|
||||
);
|
||||
Include(tcsym.varoptions,vo_force_finalize);
|
||||
end;
|
||||
@ -959,7 +959,7 @@ function get_next_varsym(def: tabstractrecorddef; const SymList:TFPHashObjectLis
|
||||
list.concat(Tai_const.Createname(tlabelsym(srsym).mangledname,offset));
|
||||
constsym :
|
||||
if tconstsym(srsym).consttyp=constresourcestring then
|
||||
list.concat(Tai_const.Createname(make_mangledname('RESSTR',tconstsym(srsym).owner,tconstsym(srsym).name),sizeof(pint)))
|
||||
list.concat(Tai_const.Createname(make_mangledname('RESSTR',tconstsym(srsym).owner,tconstsym(srsym).name),AT_DATA,sizeof(pint)))
|
||||
else
|
||||
Message(type_e_variable_id_expected);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user