From afea558fbe80b4b5688c38b85a622329df4b91eb Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Mon, 25 Mar 2024 23:48:09 +0100 Subject: [PATCH] Add -32/-64 for sparc GNU assembler calls --- compiler/sparcgen/cpugas.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/sparcgen/cpugas.pas b/compiler/sparcgen/cpugas.pas index 917b436b99..585cb41d13 100644 --- a/compiler/sparcgen/cpugas.pas +++ b/compiler/sparcgen/cpugas.pas @@ -246,7 +246,7 @@ implementation id : as_ggas; idtxt : 'GAS'; asmbin : 'gas'; - asmcmd : '$ARCH $PIC -o $OBJ $EXTRAOPT $ASM'; + asmcmd : '$ARCH $PIC -32 -o $OBJ $EXTRAOPT $ASM'; supported_targets : [system_sparc_solaris,system_sparc_linux,system_sparc_embedded]; flags : [af_needar,af_smartlink_sections]; labelprefix : '.L'; @@ -263,7 +263,7 @@ implementation {$ifdef FPC_SPARC_V8_ONLY} asmcmd : '$PIC -o $OBJ $EXTRAOPT $ASM'; {$else} - asmcmd : '$ARCH $PIC -o $OBJ $EXTRAOPT $ASM'; + asmcmd : '$ARCH $PIC -64 -o $OBJ $EXTRAOPT $ASM'; {$endif} supported_targets : [system_sparc64_linux]; flags : [af_needar,af_smartlink_sections]; @@ -278,7 +278,7 @@ implementation id : as_ggas; idtxt : 'GAS'; asmbin : 'gas'; - asmcmd : '$ARCH $PIC -o $OBJ $EXTRAOPT $ASM'; + asmcmd : '$ARCH $PIC -64 -o $OBJ $EXTRAOPT $ASM'; supported_targets : [system_sparc64_linux]; flags : [af_needar,af_smartlink_sections]; labelprefix : '.L';