1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../openssl/x32.patch
5 # Copyright (C) 2016 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 When building on x32 systems where the default type is 32bit, make sure
18 we can transparently represent 64bit integers. Otherwise we end up with
20 /usr/bin/perl asm/ghash-x86_64.pl elf > ghash-x86_64.s
21 Integer overflow in hexadecimal number at asm/../../perlasm/x86_64-xlate.pl line 201, <> line 890.
23 ghash-x86_64.s: Assembler messages:
24 ghash-x86_64.s:890: Error: junk '.15473355479995e+19' after expression
26 We don't enable this globally as there are some cases where we'd get
27 32bit values interpreted as unsigned when we need them as signed.
29 Reported-by: Bertrand Jacquin <bertrand at jacquin.bzh>
30 URL: https://bugs.gentoo.org/542618
32 crypto/perlasm/x86_64-xlate.pl | 4 ++++
33 1 file changed, 4 insertions(+)
35 diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl
36 index aae8288..0bf9774 100755
37 --- a/crypto/perlasm/x86_64-xlate.pl
38 +++ b/crypto/perlasm/x86_64-xlate.pl
39 @@ -195,6 +195,10 @@ my %globals;
43 + # When building on x32 ABIs, the expanded hex value might be too
44 + # big to fit into 32bits. Enable transparent 64bit support here
45 + # so we can safely print it out.
48 # Solaris /usr/ccs/bin/as can't handle multiplications