Detect arm64-*-*bsd and enable assembly optimizations
authorAllan Jude <allan@klarasystems.com>
Fri, 19 Nov 2021 18:58:51 +0000 (18:58 +0000)
committerPauli <ppzgs1@gmail.com>
Fri, 26 Nov 2021 00:40:58 +0000 (10:40 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17084)

Configurations/10-main.conf
util/perl/OpenSSL/config.pm

index 8414b34ed9af7d49b0a3bcf8a8b3de7e82f9a0db..9f8fb32a86c3e875d53df3a4b8d198def14ecc3e 100644 (file)
@@ -1062,6 +1062,14 @@ my %targets = (
         perlasm_scheme   => "elf",
     },
 
+    "BSD-aarch64" => {
+        inherit_from     => [ "BSD-generic64" ],
+        lib_cppflags     => add("-DL_ENDIAN"),
+        bn_ops           => "SIXTY_FOUR_BIT_LONG",
+        asm_arch         => 'aarch64',
+        perlasm_scheme   => "linux64",
+    },
+
     "bsdi-elf-gcc" => {
         inherit_from     => [ "BASE_unix" ],
         CC               => "gcc",
index d8be17cdc5f1a14aa3d1a7b69340ce81039747f7..e3802ade433027cb323a219fbb1263a4914e86c1 100755 (executable)
@@ -745,6 +745,7 @@ EOF
       [ 'ia64-.*-.*bsd.*',        { target => "BSD-ia64" } ],
       [ 'x86_64-.*-dragonfly.*',  { target => "BSD-x86_64" } ],
       [ 'amd64-.*-.*bsd.*',       { target => "BSD-x86_64" } ],
+      [ 'arm64-.*-.*bsd.*',       { target => "BSD-aarch64" } ],
       [ '.*86.*-.*-.*bsd.*',
         sub {
             # mimic ld behaviour when it's looking for libc...