1From b57cc2e4ee21babacbffc243626de72c248068ea Mon Sep 17 00:00:00 2001 2From: Andy Polyakov <appro@openssl.org> 3Date: Sun, 5 May 2019 18:30:55 +0200 4Subject: [PATCH] Configure: use ELFv2 ABI on some ppc64 big endian systems 5 6If _CALL_ELF is defined to be 2, it's an ELFv2 system. 7Conditionally switch to the v2 perlasm scheme. 8 9Reviewed-by: Paul Dale <paul.dale@oracle.com> 10Reviewed-by: Richard Levitte <levitte@openssl.org> 11(Merged from https://github.com/openssl/openssl/pull/8883) 12[vfazio: fixup for 1.1.1d] 13Signed-off-by: Vincent Fazio <vfazio@xes-inc.com> 14[rebased on openssl-1.1.1i] 15Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> 16--- 17 Configure | 4 ++++ 18 1 file changed, 4 insertions(+) 19 20diff --git a/Configure b/Configure 21index 5a699836f3..f9152b1702 100755 22--- a/Configure 23+++ b/Configure 24@@ -1417,6 +1417,10 @@ my %predefined_CXX = $config{CXX} 25 ? compiler_predefined($config{CROSS_COMPILE}.$config{CXX}) 26 : (); 27 28+if ($target eq "linux-ppc64" && !$disabled{asm}) { 29+ $target{perlasm_scheme} = "linux64v2" if ($predefined_C{_CALL_ELF} == 2); 30+} 31+ 32 # Check for makedepend capabilities. 33 if (!$disabled{makedepend}) { 34 if ($config{target} =~ /^(VC|vms)-/) { 35-- 362.25.0 37 38