package/libopenssl: add PPC64BE ELFv2 support
PATCH 1/1 package/libopenssl: add PPC64BE ELFv2 support
From: Vincent Fazio <[email protected]>
musl libc uses ELFv2 by default for all PPC64 targets.
Now, OpenSSL libraries built with musl targeting PPC64BE should build and function as expected.
Signed-off-by Vincent Fazio <[email protected]>
--- ...Fv2-ABI-on-some-ppc64-big-endian-sys.patch | 35 +++++++++++ ...m-ppc-xlate.pl-add-linux64v2-flavour.patch | 63 +++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 package/libopenssl/0004-Configure-use-ELFv2-ABI-on-some-ppc64-big-endian-sys.patch create mode 100644 package/libopenssl/0005-crypto-perlasm-ppc-xlate.pl-add-linux64v2-flavour.patch
package/libopenssl/0004-Configure-use-ELFv2-ABI-on-some-ppc64-big-endian-sys.patch new file +35 -0
@@ -0,0 +1,35 @@ +From b57cc2e4ee21babacbffc243626de72c248068ea Mon Sep 17 00:00:00 2001 +From: Andy Polyakov <[email protected]> +Date: Sun, 5 May 2019 18:30:55 +0200 +Subject: [PATCH] Configure: use ELFv2 ABI on some ppc64 big endian systems + +If _CALL_ELF is defined to be 2, it's an ELFv2 system. +Conditionally switch to the v2 perlasm scheme. + +Reviewed-by: Paul Dale <[email protected]> +Reviewed-by: Richard Levitte <[email protected]> +(Merged from https://github.com/openssl/openssl/pull/8883) +[vfazio: fixup for 1.1.1d] +Signed-off-by: Vincent Fazio <[email protected]> +--- + Configure | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/Configure b/Configure +index 5a699836f3..f9152b1702 100755 +--- a/Configure ++++ b/Configure +@@ -1413,6 +1413,10 @@ my %predefined_CXX = $config{CXX} + ? compiler_predefined($config{CROSS_COMPILE}.$config{CXX}) + : (); + ++if ($target eq "linux-ppc64" && !$disabled{asm}) { ++ $target{perlasm_scheme} = "linux64v2" if ($predefined_C{_CALL_ELF} == 2); ++} ++ + # Check for makedepend capabilities. + if (!$disabled{makedepend}) { + if ($config{target} =~ /^(VC|vms)-/) { +-- +2.25.0 +
package/libopenssl/0005-crypto-perlasm-ppc-xlate.pl-add-linux64v2-flavour.patch new file +63 -0
63 lines not on this page · raw message
Signature · 1 line
2.25.1
Thomas Petazzoni
AppliedPATCH 1/1 package/libopenssl: add PPC64BE ELFv2 support
Quoted 7 lines · On Thu, 27 Feb 2020 14:15:05 -0600 Vincent Fazio <[email protected]> wrote:
From: Vincent Fazio <[email protected]>
musl libc uses ELFv2 by default for all PPC64 targets.
Now, OpenSSL libraries built with musl targeting PPC64BE should build and function as expected.
Quoted 7 lines
Signed-off-by Vincent Fazio <[email protected]>--- ...Fv2-ABI-on-some-ppc64-big-endian-sys.patch | 35 +++++++++++ ...m-ppc-xlate.pl-add-linux64v2-flavour.patch | 63 +++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 package/libopenssl/0004-Configure-use-ELFv2-ABI-on-some-ppc64-big-endian-sys.patch create mode 100644 package/libopenssl/0005-crypto-perlasm-ppc-xlate.pl-add-linux64v2-flavour.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com