From cc071ded4b5cd516e28aa467a2bd0cdd15a00a98 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sat, 14 Mar 2015 18:35:22 +0000 Subject: [PATCH] * define _CALL_ELF=1 or _CALL_ELF=2 symbol when targeting ppc(64) ELFv1/ELFv2, like GCC git-svn-id: trunk@30195 - --- compiler/options.pas | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/compiler/options.pas b/compiler/options.pas index d19d03e581..ce26743cb8 100644 --- a/compiler/options.pas +++ b/compiler/options.pas @@ -3908,6 +3908,16 @@ if (target_info.abi = abi_eabihf) then end; {$endif} +{$if defined(powerpc) or defined(powerpc64)} + { define _CALL_ELF symbol like gcc } + case target_info.abi of + abi_powerpc_sysv: + set_system_compvar('_CALL_ELF','1'); + abi_powerpc_elfv2: + set_system_compvar('_CALL_ELF','2'); + end; +{$endif} + { Section smartlinking conflicts with import sections on Windows } if GenerateImportSection and (target_info.system in [system_i386_win32,system_x86_64_win64]) then