瀏覽代碼

Disable -EB/-EL passing for freertos OS as the corresponding released binutils do not support this option

Pierre Muller 2 年之前
父節點
當前提交
d24548f8d8
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/xtensa/agcpugas.pas

+ 4 - 1
compiler/xtensa/agcpugas.pas

@@ -66,7 +66,10 @@ unit agcpugas;
     function TXtensaGNUAssembler.MakeCmdLine: TCmdStr;
     function TXtensaGNUAssembler.MakeCmdLine: TCmdStr;
       begin
       begin
         result:=inherited MakeCmdLine;
         result:=inherited MakeCmdLine;
-        if target_info.endian=endian_little then
+	{ Released FreeRTOS binutils do not support -EB/-EL options }
+        if target_info.system=system_xtensa_freertos then
+          Replace(result,'$SHORTENDIAN','')
+        else if target_info.endian=endian_little then
           Replace(result,'$SHORTENDIAN','-EL')
           Replace(result,'$SHORTENDIAN','-EL')
         else
         else
           Replace(result,'$SHORTENDIAN','-EB');
           Replace(result,'$SHORTENDIAN','-EB');