diff options
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.patch | 44 |
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 @@ | |||
1 | From ac052c0b383dd6db4cb514a193ba44647504687f Mon Sep 17 00:00:00 2001 | ||
2 | From: Cristian Stoica <cristian.stoica@nxp.com> | ||
3 | Date: Thu, 5 May 2016 11:55:46 +0300 | ||
4 | Subject: [PATCH] use 64bit integers on x32 systems | ||
5 | |||
6 | When building on x32 systems where the default type is 32bit, make sure | ||
7 | we can transparently represent 64bit integers. Otherwise we end up with | ||
8 | build errors like: | ||
9 | /usr/bin/perl asm/ghash-x86_64.pl elf > ghash-x86_64.s | ||
10 | Integer overflow in hexadecimal number at asm/../../perlasm/x86_64-xlate.pl line 201, <> line 890. | ||
11 | ... | ||
12 | ghash-x86_64.s: Assembler messages: | ||
13 | ghash-x86_64.s:890: Error: junk '.15473355479995e+19' after expression | ||
14 | |||
15 | We don't enable this globally as there are some cases where we'd get | ||
16 | 32bit values interpreted as unsigned when we need them as signed. | ||
17 | |||
18 | Reported-by: Bertrand Jacquin <bertrand@jacquin.bzh> | ||
19 | URL: https://bugs.gentoo.org/542618 | ||
20 | |||
21 | Signed-off-By: Armin Kuster <akuster@mvista.com> | ||
22 | --- | ||
23 | crypto/perlasm/x86_64-xlate.pl | 5 +++++ | ||
24 | 1 file changed, 5 insertions(+) | ||
25 | |||
26 | diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl | ||
27 | index 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 | -- | ||
43 | 2.7.0 | ||
44 | |||