Skip to content

Commit 874c738

Browse files
committed
Revert ADX due to build issues.
Using ADX instructions requires relatively new assemblers. Conscrypt are currently using Yasm 1.2.0. Revert these for the time being to unbreak their build. Change-Id: Iaba5761ccedcafaffb5ca79a8eaf7fa565583c32 Reviewed-on: https://boringssl-review.googlesource.com/19244 Commit-Queue: David Benjamin <[email protected]> Commit-Queue: Adam Langley <[email protected]> Reviewed-by: Adam Langley <[email protected]>
1 parent 02b1d19 commit 874c738

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

BUILDING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@
3232
* [Go](https://golang.org/dl/) is required. If not found by CMake, the go
3333
executable may be configured explicitly by setting `GO_EXECUTABLE`.
3434

35-
* To build the x86 and x86\_64 assembly, your assembler must support AVX2,
36-
MOVBE, and ADX. If using GNU binutils, you must have 2.23 or later. If using
37-
Yasm, you must have 1.3.0 or later.
35+
* To build the x86 and x86\_64 assembly, your assembler must support AVX2
36+
instructions and MOVBE. If using GNU binutils, you must have 2.22 or later
3837

3938
## Building
4039

crypto/fipsmodule/bn/asm/rsaz-avx2.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@
8282
# In upstream, this is controlled by shelling out to the compiler to check
8383
# versions, but BoringSSL is intended to be used with pre-generated perlasm
8484
# output, so this isn't useful anyway.
85+
#
86+
# TODO(davidben): Set $addx to one once build problems are resolved.
8587
$avx = 2;
86-
$addx = 1;
88+
$addx = 0;
8789

8890
open OUT,"| \"$^X\" \"$xlate\" $flavour \"$output\"";
8991
*STDOUT = *OUT;

crypto/fipsmodule/bn/asm/x86_64-mont.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@
5656
# In upstream, this is controlled by shelling out to the compiler to check
5757
# versions, but BoringSSL is intended to be used with pre-generated perlasm
5858
# output, so this isn't useful anyway.
59-
$addx = 1;
59+
#
60+
# TODO(davidben): Set $addx to one once build problems are resolved.
61+
$addx = 0;
6062

6163
# int bn_mul_mont(
6264
$rp="%rdi"; # BN_ULONG *rp,

crypto/fipsmodule/bn/asm/x86_64-mont5.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
# In upstream, this is controlled by shelling out to the compiler to check
4242
# versions, but BoringSSL is intended to be used with pre-generated perlasm
4343
# output, so this isn't useful anyway.
44-
$addx = 1;
44+
#
45+
# TODO(davidben): Set $addx to one once build problems are resolved.
46+
$addx = 0;
4547

4648
# int bn_mul_mont_gather5(
4749
$rp="%rdi"; # BN_ULONG *rp,

crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@
5454
open OUT,"| \"$^X\" \"$xlate\" $flavour \"$output\"";
5555
*STDOUT=*OUT;
5656

57+
# TODO(davidben): Set $addx to one once build problems are resolved.
5758
$avx = 2;
58-
$addx = 1;
59+
$addx = 0;
5960

6061
$code.=<<___;
6162
.text

0 commit comments

Comments
 (0)