Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
Another Android+clang assembly build fix (#16)
Browse files Browse the repository at this point in the history
This time for clang from an older NDK (14b) which not only needs the previous
fix to enable the crypto extensions but it also needs NEON to be explicitly
enabled in order to avoid errors similar to:

    ghashv8-armx.S:14:2: error: instruction requires: neon
     movi v19.16b,#0xe1
  • Loading branch information
grendello authored and lewurm committed Jan 3, 2019
1 parent a388490 commit d637462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/aes/asm/aesv8-armx.pl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
___
$code.=<<___ if ($flavour =~ /64/);
#if defined(ANDROID) || !defined(__clang__)
.arch armv8-a+crypto
.arch armv8-a+crypto,+neon
#endif
___
$code.=".arch armv7-a\n.fpu neon\n.code 32\n" if ($flavour !~ /64/);
Expand Down
2 changes: 1 addition & 1 deletion crypto/modes/asm/ghashv8-armx.pl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
___
$code.=<<___ if ($flavour =~ /64/);
#if defined(ANDROID) || !defined(__clang__)
.arch armv8-a+crypto
.arch armv8-a+crypto,+neon
#endif
___
$code.=".fpu neon\n.code 32\n" if ($flavour !~ /64/);
Expand Down

0 comments on commit d637462

Please sign in to comment.