summaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/openssl/openssl-qoriq/crypto_use_bigint_in_x86-64_perl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/openssl/openssl-qoriq/crypto_use_bigint_in_x86-64_perl.patch')
-rw-r--r--recipes-connectivity/openssl/openssl-qoriq/crypto_use_bigint_in_x86-64_perl.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/recipes-connectivity/openssl/openssl-qoriq/crypto_use_bigint_in_x86-64_perl.patch b/recipes-connectivity/openssl/openssl-qoriq/crypto_use_bigint_in_x86-64_perl.patch
deleted file mode 100644
index 99c94337..00000000
--- a/recipes-connectivity/openssl/openssl-qoriq/crypto_use_bigint_in_x86-64_perl.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From ac052c0b383dd6db4cb514a193ba44647504687f Mon Sep 17 00:00:00 2001
2From: Cristian Stoica <cristian.stoica@nxp.com>
3Date: Thu, 5 May 2016 11:55:46 +0300
4Subject: [PATCH] use 64bit integers on x32 systems
5
6When building on x32 systems where the default type is 32bit, make sure
7we can transparently represent 64bit integers. Otherwise we end up with
8build errors like:
9/usr/bin/perl asm/ghash-x86_64.pl elf > ghash-x86_64.s
10Integer overflow in hexadecimal number at asm/../../perlasm/x86_64-xlate.pl line 201, <> line 890.
11...
12ghash-x86_64.s: Assembler messages:
13ghash-x86_64.s:890: Error: junk '.15473355479995e+19' after expression
14
15We don't enable this globally as there are some cases where we'd get
1632bit values interpreted as unsigned when we need them as signed.
17
18Reported-by: Bertrand Jacquin <bertrand@jacquin.bzh>
19URL: https://bugs.gentoo.org/542618
20
21Signed-off-By: Armin Kuster <akuster@mvista.com>
22---
23 crypto/perlasm/x86_64-xlate.pl | 5 +++++
24 1 file changed, 5 insertions(+)
25
26diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl
27index 7a3dd04..fc6105d 100755
28--- a/crypto/perlasm/x86_64-xlate.pl
29+++ b/crypto/perlasm/x86_64-xlate.pl
30@@ -195,6 +195,11 @@ my %globals;
31 sub out {
32 my $self = shift;
33
34+ # When building on x32 ABIs, the expanded hex value might be too
35+ # big to fit into 32bits. Enable transparent 64bit support here
36+ # so we can safely print it out.
37+ use bigint;
38+
39 $self->{value} =~ s/\b(0b[0-1]+)/oct($1)/eig;
40 if ($gas) {
41 # Solaris /usr/ccs/bin/as can't handle multiplications
42--
432.7.0
44