Browse Source

Merged revision 15938 from
------------------------------------------------------------------------
r15938 | pierre | 2010-09-02 08:59:01 +0200 (Thu, 02 Sep 2010) | 1 line

* fix target options for GNU ld
------------------------------------------------------------------------

git-svn-id: branches/fixes_2_4@16721 -

pierre 14 years ago
parent
commit
5639f3c316
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/systems/t_win.pas

+ 2 - 2
compiler/systems/t_win.pas

@@ -1090,12 +1090,12 @@ implementation
         with Info do
          begin
 {$ifdef x86_64}
-           targetopts:='-b pe-x86_64';
+           targetopts:='-b pei-x86-64';
 {$else x86_64}
            if target_info.system=system_arm_wince then
              targetopts:='-m arm_wince_pe'
            else
-             targetopts:='-b pe-i386 -m i386pe';
+             targetopts:='-b pei-i386 -m i386pe';
 {$endif not x86_64}
            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';