|
@@ -251,12 +251,12 @@ implementation
|
|
{ idata4 }
|
|
{ idata4 }
|
|
objdata.SetSection(idata4objsection);
|
|
objdata.SetSection(idata4objsection);
|
|
objdata.writebytes(emptyint,sizeof(emptyint));
|
|
objdata.writebytes(emptyint,sizeof(emptyint));
|
|
- if target_info.system=system_x86_64_win64 then
|
|
|
|
|
|
+ if target_info.system in systems_peoptplus then
|
|
objdata.writebytes(emptyint,sizeof(emptyint));
|
|
objdata.writebytes(emptyint,sizeof(emptyint));
|
|
{ idata5 }
|
|
{ idata5 }
|
|
objdata.SetSection(idata5objsection);
|
|
objdata.SetSection(idata5objsection);
|
|
objdata.writebytes(emptyint,sizeof(emptyint));
|
|
objdata.writebytes(emptyint,sizeof(emptyint));
|
|
- if target_info.system=system_x86_64_win64 then
|
|
|
|
|
|
+ if target_info.system in systems_peoptplus then
|
|
objdata.writebytes(emptyint,sizeof(emptyint));
|
|
objdata.writebytes(emptyint,sizeof(emptyint));
|
|
{ idata7 }
|
|
{ idata7 }
|
|
objdata.SetSection(idata7objsection);
|
|
objdata.SetSection(idata7objsection);
|
|
@@ -311,14 +311,14 @@ implementation
|
|
begin
|
|
begin
|
|
{ import by name }
|
|
{ import by name }
|
|
objdata.writereloc(0,sizeof(longint),idata6label,RELOC_RVA);
|
|
objdata.writereloc(0,sizeof(longint),idata6label,RELOC_RVA);
|
|
- if target_info.system=system_x86_64_win64 then
|
|
|
|
|
|
+ if target_info.system in systems_peoptplus then
|
|
objdata.writebytes(emptyint,sizeof(emptyint));
|
|
objdata.writebytes(emptyint,sizeof(emptyint));
|
|
end
|
|
end
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
{ import by ordinal }
|
|
{ import by ordinal }
|
|
ordint:=ordnr;
|
|
ordint:=ordnr;
|
|
- if target_info.system=system_x86_64_win64 then
|
|
|
|
|
|
+ if target_info.system in systems_peoptplus then
|
|
begin
|
|
begin
|
|
objdata.writebytes(ordint,sizeof(ordint));
|
|
objdata.writebytes(ordint,sizeof(ordint));
|
|
ordint:=$80000000;
|
|
ordint:=$80000000;
|
|
@@ -487,12 +487,12 @@ implementation
|
|
if ImportSymbol.Name<>'' then
|
|
if ImportSymbol.Name<>'' then
|
|
begin
|
|
begin
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_rva_sym(TAsmLabel(ImportLabels[j])));
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_rva_sym(TAsmLabel(ImportLabels[j])));
|
|
- if target_info.system=system_x86_64_win64 then
|
|
|
|
|
|
+ if target_info.system in systems_peoptplus then
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
end
|
|
end
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
- if target_info.system=system_x86_64_win64 then
|
|
|
|
|
|
+ if target_info.system in systems_peoptplus then
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_64bit(int64($8000000000000000) or ImportSymbol.ordnr))
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_64bit(int64($8000000000000000) or ImportSymbol.ordnr))
|
|
else
|
|
else
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(longint($80000000) or ImportSymbol.ordnr));
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(longint($80000000) or ImportSymbol.ordnr));
|
|
@@ -500,7 +500,7 @@ implementation
|
|
end;
|
|
end;
|
|
{ finalize the names ... }
|
|
{ finalize the names ... }
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
- if target_info.system=system_x86_64_win64 then
|
|
|
|
|
|
+ if target_info.system in systems_peoptplus then
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
|
|
|
|
{ then the addresses and create also the indirect jump }
|
|
{ then the addresses and create also the indirect jump }
|
|
@@ -573,12 +573,12 @@ implementation
|
|
else
|
|
else
|
|
current_asmdata.asmlists[al_imports].concat(Tai_symbol.Createname_global(ImportSymbol.MangledName,AT_DATA,0,voidpointertype));
|
|
current_asmdata.asmlists[al_imports].concat(Tai_symbol.Createname_global(ImportSymbol.MangledName,AT_DATA,0,voidpointertype));
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_rva_sym(TAsmLabel(Importlabels[j])));
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_rva_sym(TAsmLabel(Importlabels[j])));
|
|
- if target_info.system=system_x86_64_win64 then
|
|
|
|
|
|
+ if target_info.system in systems_peoptplus then
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
end;
|
|
end;
|
|
{ finalize the addresses }
|
|
{ finalize the addresses }
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
- if target_info.system=system_x86_64_win64 then
|
|
|
|
|
|
+ if target_info.system in systems_peoptplus then
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
current_asmdata.asmlists[al_imports].concat(Tai_const.Create_32bit(0));
|
|
|
|
|
|
{ finally the import information }
|
|
{ finally the import information }
|