|
@@ -66,6 +66,11 @@ unit agcpugas;
|
|
|
function TXtensaGNUAssembler.MakeCmdLine: TCmdStr;
|
|
|
begin
|
|
|
result:=inherited MakeCmdLine;
|
|
|
+ if target_info.endian=endian_little then
|
|
|
+ Replace(result,'$SHORTENDIAN','-EL')
|
|
|
+ else
|
|
|
+ Replace(result,'$SHORTENDIAN','-EB');
|
|
|
+
|
|
|
end;
|
|
|
|
|
|
{****************************************************************************}
|
|
@@ -178,7 +183,7 @@ unit agcpugas;
|
|
|
|
|
|
idtxt : 'AS';
|
|
|
asmbin : 'as';
|
|
|
- asmcmd : '-o $OBJ $EXTRAOPT $ASM --longcalls';
|
|
|
+ asmcmd : '-o $OBJ $SHORTENDIAN $EXTRAOPT $ASM --longcalls';
|
|
|
supported_targets : [system_xtensa_embedded,system_xtensa_linux,system_xtensa_freertos];
|
|
|
flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_stabs_use_function_absolute_addresses];
|
|
|
labelprefix : '.L';
|