Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/botan/files: botan-1.8.8-use_negative_lea_displacement.patch
Date: Wed, 04 Nov 2009 12:24:27
Message-Id: E1N5euX-0005Q0-B0@stork.gentoo.org
1 arfrever 09/11/04 12:24:25
2
3 Added: botan-1.8.8-use_negative_lea_displacement.patch
4 Log:
5 Fix building with sys-devel/binutils-2.20.51.0.2 (bug #291785).
6 (Portage version: 14775-svn/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-libs/botan/files/botan-1.8.8-use_negative_lea_displacement.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/botan/files/botan-1.8.8-use_negative_lea_displacement.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/botan/files/botan-1.8.8-use_negative_lea_displacement.patch?rev=1.1&content-type=text/plain
13
14 Index: botan-1.8.8-use_negative_lea_displacement.patch
15 ===================================================================
16 #
17 # old_revision [a101c8c86b755a666c72baf03154230e09e0667e]
18 #
19 # patch "src/hash/sha1_amd64/sha1_amd64_imp.S"
20 # from [dd263db10309950dec501dd9257a8df43cf6c6aa]
21 # to [ab1db7a394b41a1d3b9a63a6e8e1571e4671b962]
22 #
23 ============================================================
24 --- src/hash/sha1_amd64/sha1_amd64_imp.S dd263db10309950dec501dd9257a8df43cf6c6aa
25 +++ src/hash/sha1_amd64/sha1_amd64_imp.S ab1db7a394b41a1d3b9a63a6e8e1571e4671b962
26 @@ -103,10 +103,16 @@ ALIGN;
27
28 subq $320, W
29
30 +/*
31 +* Using negative values for SHA-1 constants > 2^31 to work around
32 +* a bug in binutils not accepting large lea displacements.
33 +* -0x70E44324 == 0x8F1BBCDC
34 +* -0x359D3E2A == 0xCA62C1D6
35 +*/
36 #define MAGIC1 0x5A827999
37 #define MAGIC2 0x6ED9EBA1
38 -#define MAGIC3 0x8F1BBCDC
39 -#define MAGIC4 0xCA62C1D6
40 +#define MAGIC3 -0x70E44324
41 +#define MAGIC4 -0x359D3E2A
42
43 #define T %esi
44 #define T2 %eax