diff options
| author | Cristian Stoica <cristian.stoica@nxp.com> | 2016-01-25 13:33:46 +0200 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-08-12 11:41:02 -0300 |
| commit | 0579a92e1ff03656e1c6089714a3be4244622ef0 (patch) | |
| tree | 125a6912e920cd54ac31f2e2e44a57f227f048e6 /recipes-connectivity/openssl/openssl-qoriq/openssl-1.0.2a-x32-asm.patch | |
| parent | b8e3085e4e9608b301121c7065c84a3e51b94c74 (diff) | |
| download | meta-freescale-0579a92e1ff03656e1c6089714a3be4244622ef0.tar.gz | |
openssl-qoriq: upgrade to 1.0.2h plus fsl patches
Based on oe-core openssl-1.0.2h, revision:
e49d337 meta: update patch metadata
extended with patches from fsl to enable more features.
Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
Diffstat (limited to 'recipes-connectivity/openssl/openssl-qoriq/openssl-1.0.2a-x32-asm.patch')
| -rw-r--r-- | recipes-connectivity/openssl/openssl-qoriq/openssl-1.0.2a-x32-asm.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes-connectivity/openssl/openssl-qoriq/openssl-1.0.2a-x32-asm.patch b/recipes-connectivity/openssl/openssl-qoriq/openssl-1.0.2a-x32-asm.patch new file mode 100644 index 000000000..1e5bfa17d --- /dev/null +++ b/recipes-connectivity/openssl/openssl-qoriq/openssl-1.0.2a-x32-asm.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | https://rt.openssl.org/Ticket/Display.html?id=3759&user=guest&pass=guest | ||
| 2 | |||
| 3 | From 6257d59b3a68d2feb9d64317a1c556dc3813ee61 Mon Sep 17 00:00:00 2001 | ||
| 4 | From: Mike Frysinger <vapier@gentoo.org> | ||
| 5 | Date: Sat, 21 Mar 2015 06:01:25 -0400 | ||
| 6 | Subject: [PATCH] crypto: use bigint in x86-64 perl | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> | ||
| 10 | |||
| 11 | When building on x32 systems where the default type is 32bit, make sure | ||
| 12 | we can transparently represent 64bit integers. Otherwise we end up with | ||
| 13 | build errors like: | ||
| 14 | /usr/bin/perl asm/ghash-x86_64.pl elf > ghash-x86_64.s | ||
| 15 | Integer overflow in hexadecimal number at asm/../../perlasm/x86_64-xlate.pl line 201, <> line 890. | ||
| 16 | ... | ||
| 17 | ghash-x86_64.s: Assembler messages: | ||
| 18 | ghash-x86_64.s:890: Error: junk '.15473355479995e+19' after expression | ||
| 19 | |||
| 20 | We don't enable this globally as there are some cases where we'd get | ||
| 21 | 32bit values interpreted as unsigned when we need them as signed. | ||
| 22 | |||
| 23 | Reported-by: Bertrand Jacquin <bertrand@jacquin.bzh> | ||
| 24 | URL: https://bugs.gentoo.org/542618 | ||
| 25 | --- | ||
| 26 | crypto/perlasm/x86_64-xlate.pl | 4 ++++ | ||
| 27 | 1 file changed, 4 insertions(+) | ||
| 28 | |||
| 29 | diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl | ||
| 30 | index aae8288..0bf9774 100755 | ||
| 31 | --- a/crypto/perlasm/x86_64-xlate.pl | ||
| 32 | +++ b/crypto/perlasm/x86_64-xlate.pl | ||
| 33 | @@ -195,6 +195,10 @@ my %globals; | ||
| 34 | sub out { | ||
| 35 | my $self = shift; | ||
| 36 | |||
| 37 | + # When building on x32 ABIs, the expanded hex value might be too | ||
| 38 | + # big to fit into 32bits. Enable transparent 64bit support here | ||
| 39 | + # so we can safely print it out. | ||
| 40 | + use bigint; | ||
| 41 | if ($gas) { | ||
| 42 | # Solaris /usr/ccs/bin/as can't handle multiplications | ||
| 43 | # in $self->{value} | ||
| 44 | -- | ||
| 45 | 2.3.3 | ||
| 46 | |||
