Add '-b pei_aarch64' option for aarch64-win64 system

This commit is contained in:
Pierre Muller 2023-05-25 09:58:42 +00:00
parent a342b74f66
commit c1e2f557f1

View File

@ -1145,14 +1145,18 @@ implementation
begin begin
with Info do with Info do
begin begin
{$ifdef aarch64}
targetopts:='-b pei-aarch64-little';
{$endif aarch64}
{$ifdef x86_64} {$ifdef x86_64}
targetopts:='-b pei-x86-64'; targetopts:='-b pei-x86-64';
{$else x86_64} {$endif x86_64}
if target_info.system=system_arm_wince then {$ifdef i386}
targetopts:='-m arm_wince_pe' targetopts:='-b pei-i386 -m i386pe';
else {$endif i386}
targetopts:='-b pei-i386 -m i386pe'; {$ifdef arm}
{$endif not x86_64} targetopts:='-m arm_wince_pe';
{$endif arm}
ExeCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP $APPTYPE $ENTRY $IMAGEBASE $RELOC -o $EXE $RES'; ExeCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP $APPTYPE $ENTRY $IMAGEBASE $RELOC -o $EXE $RES';
DllCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP --dll $APPTYPE $ENTRY $IMAGEBASE $RELOC -o $EXE $RES'; DllCmd[1]:='ld '+targetopts+' $OPT $GCSECTIONS $MAP $STRIP --dll $APPTYPE $ENTRY $IMAGEBASE $RELOC -o $EXE $RES';
{ ExeCmd[2]:='dlltool --as $ASBIN --dllname $EXE --output-exp exp.$$$ $RELOC $DEF'; { ExeCmd[2]:='dlltool --as $ASBIN --dllname $EXE --output-exp exp.$$$ $RELOC $DEF';