Add possibility to use GNU assembler gas on naitve AIX

git-svn-id: trunk@27632 -
This commit is contained in:
pierre 2014-04-22 15:48:55 +00:00
parent bb3ec0bd86
commit 19ba1b43a1
2 changed files with 23 additions and 0 deletions

View File

@ -589,9 +589,31 @@ unit agppcgas;
dollarsign : '.'
);
as_ppc_gas_aix_powerpc_info : tasminfo =
(
id : as_gas_powerpc_xcoff;
idtxt : 'GAS';
asmbin : 'gas';
{ -u: allow using symbols before they are defined (when using native
AIX assembler, ignore by GNU assembler)
-mpwr5: we actually support Power3 and higher, but the AIX assembler
has no parameter to select that one (only -mpwr3 and -mpwr5) }
{$ifdef cpu64bitaddr}
asmcmd : '-a64 -u -o $OBJ $EXTRAOPT $ASM -mpwr5';
{$else cpu64bitaddr}
asmcmd : '-a32 -u -o $OBJ $EXTRAOPT $ASM -mpwr5';
{$endif cpu64bitaddr}
supported_targets : [system_powerpc_aix,system_powerpc64_aix];
flags : [af_needar,af_smartlink_sections,af_stabs_use_function_absolute_addresses];
labelprefix : 'L';
comment : '# ';
dollarsign : '.'
);
begin
RegisterAssembler(as_ppc_gas_info,TPPCGNUAssembler);
RegisterAssembler(as_ppc_gas_darwin_powerpc_info,TPPCAppleGNUAssembler);
RegisterAssembler(as_ppc_aix_powerpc_info,TPPCAIXAssembler);
RegisterAssembler(as_ppc_gas_aix_powerpc_info,TPPCAIXAssembler);
end.

View File

@ -207,6 +207,7 @@
,as_x86_64_nasmdarwin
,as_i8086_nasm
,as_i8086_nasmobj
,as_gas_powerpc_xcoff
);
tlink = (ld_none,