From: | "Kristian Fiskerstrand (k_f)" <k_f@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/libgcrypt/files: libgcrypt-1.6.1-x32-compat.patch |
Date: | Tue, 29 Jul 2014 17:24:41 |
Message-Id: | 20140729172435.0731820035@flycatcher.gentoo.org |
1 | k_f 14/07/29 17:24:32 |
2 | |
3 | Added: libgcrypt-1.6.1-x32-compat.patch |
4 | Log: |
5 | Revbump to add patch to fix segfaults for x32 ABIs. Fixes bug #512762 |
6 | |
7 | (Portage version: 2.2.8-r1/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 0xFC3B17DE05E136A0!) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-libs/libgcrypt/files/libgcrypt-1.6.1-x32-compat.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libgcrypt/files/libgcrypt-1.6.1-x32-compat.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/libgcrypt/files/libgcrypt-1.6.1-x32-compat.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: libgcrypt-1.6.1-x32-compat.patch |
16 | =================================================================== |
17 | diff -r 9dc4a391dd6d mpi/generic/mpi-asm-defs.h |
18 | --- a/mpi/generic/mpi-asm-defs.h Tue Jul 29 16:44:47 2014 +0200 |
19 | +++ b/mpi/generic/mpi-asm-defs.h Tue Jul 29 16:47:43 2014 +0200 |
20 | @@ -1,7 +1,12 @@ |
21 | -/* This file defines some basic constants for the MPI machinery. We |
22 | - * need to define the types on a per-CPU basis, so it is done with |
23 | - * this file here. */ |
24 | +/* AMD64 compiled with x32 fails in assembly due to incorrect |
25 | + * size of long detected. Using compiler information to detect |
26 | + * this since it is no longer per-architecture |
27 | + */ |
28 | +#if defined(__GNUC__) && __GNUC__ >= 3 && defined(__x86_64__) && defined(__ILP32__) |
29 | +#define BYTES_PER_MPI_LIMB 8 |
30 | +#else |
31 | #define BYTES_PER_MPI_LIMB (SIZEOF_UNSIGNED_LONG) |
32 | +#endif |