Browse Source

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

Pierre Muller 2 years ago
parent
commit
d24548f8d8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/xtensa/agcpugas.pas

+ 4 - 1
compiler/xtensa/agcpugas.pas

@@ -66,7 +66,10 @@ unit agcpugas;
     function TXtensaGNUAssembler.MakeCmdLine: TCmdStr;
       begin
         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')
         else
           Replace(result,'$SHORTENDIAN','-EB');