mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 09:29:26 +02:00
* define _CALL_ELF=1 or _CALL_ELF=2 symbol when targeting ppc(64)
ELFv1/ELFv2, like GCC git-svn-id: trunk@30195 -
This commit is contained in:
parent
05f6660a25
commit
cc071ded4b
@ -3908,6 +3908,16 @@ if (target_info.abi = abi_eabihf) then
|
|||||||
end;
|
end;
|
||||||
{$endif}
|
{$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 }
|
{ Section smartlinking conflicts with import sections on Windows }
|
||||||
if GenerateImportSection and
|
if GenerateImportSection and
|
||||||
(target_info.system in [system_i386_win32,system_x86_64_win64]) then
|
(target_info.system in [system_i386_win32,system_x86_64_win64]) then
|
||||||
|
Loading…
Reference in New Issue
Block a user