0004-Configure-use-ELFv2-ABI-on-some-ppc64-big-endian-sys.patch 1.2 KB

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