summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Jude <allan@klarasystems.com>2021-11-19 19:06:52 +0000
committerTomas Mraz <tomas@openssl.org>2022-05-05 11:13:43 +0200
commitac2d4cb656b3a796db3dc6f8873e91e67907372d (patch)
tree65989fe0055f6b517152b32604e99b0afff72fe8
parentec1b4bf26c1b2440546f323873c578374f60b2de (diff)
1_1_1-stable: Detect arm64-*-*bsd and enable assembly optimizations
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17085)
-rw-r--r--Configurations/10-main.conf7
-rwxr-xr-xconfig1
2 files changed, 8 insertions, 0 deletions
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index 8ca8235ed5..2fcb96a047 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -995,6 +995,13 @@ my %targets = (
perlasm_scheme => "linux64",
},
+ "BSD-aarch64" => {
+ inherit_from => [ "BSD-generic64", asm("aarch64_asm") ],
+ lib_cppflags => add("-DL_ENDIAN"),
+ bn_ops => "SIXTY_FOUR_BIT_LONG",
+ perlasm_scheme => "linux64",
+ },
+
"bsdi-elf-gcc" => {
inherit_from => [ "BASE_unix", asm("x86_elf_asm") ],
CC => "gcc",
diff --git a/config b/config
index 49422981ae..f43627cfe8 100755
--- a/config
+++ b/config
@@ -709,6 +709,7 @@ case "$GUESSOS" in
ia64-*-*bsd*) OUT="BSD-ia64" ;;
x86_64-*-dragonfly*) OUT="BSD-x86_64" ;;
amd64-*-*bsd*) OUT="BSD-x86_64" ;;
+ arm64-*-*bsd*) OUT="BSD-aarch64" ;;
*86*-*-*bsd*) # mimic ld behaviour when it's looking for libc...
if [ -L /usr/lib/libc.so ]; then # [Free|Net]BSD
libc=/usr/lib/libc.so