浏览代码

* Fix compilation of sparc/cpuelf unit

git-svn-id: trunk@22209 -
pierre 13 年之前
父节点
当前提交
926d39e604
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      compiler/sparc/cpuelf.pas

+ 3 - 2
compiler/sparc/cpuelf.pas

@@ -71,7 +71,7 @@ implementation
                                TElfAssemblerSparc
                                TElfAssemblerSparc
 ****************************************************************************}
 ****************************************************************************}
 
 
-  constructor TElfAssembleri386.create(smart:boolean);
+  constructor TElfAssemblerSparc.create(smart:boolean);
     begin
     begin
       inherited Create(smart);
       inherited Create(smart);
       CObjOutput:=TElfObjOutputSparc;
       CObjOutput:=TElfObjOutputSparc;
@@ -89,7 +89,8 @@ implementation
          idtxt  : 'ELF';
          idtxt  : 'ELF';
          asmbin : '';
          asmbin : '';
          asmcmd : '';
          asmcmd : '';
-         supported_targets : [];
+         supported_targets : [system_sparc_linux, system_sparc_solaris,
+                              system_sparc_embedded];
 //            flags : [af_outputbinary,af_smartlink_sections];
 //            flags : [af_outputbinary,af_smartlink_sections];
          flags : [af_outputbinary,af_supports_dwarf];
          flags : [af_outputbinary,af_supports_dwarf];
          labelprefix : '.L';
          labelprefix : '.L';