Detect arm64-*-*bsd and enable assembly optimizations
authorAllan Jude <allan@klarasystems.com>
Fri, 19 Nov 2021 18:58:51 +0000 (18:58 +0000)
committerTomas Mraz <tomas@openssl.org>
Thu, 5 May 2022 09:11:40 +0000 (11:11 +0200)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17084)

(cherry picked from commit 8e22f9d6d956ad583afe10b986519731c113ac80)

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

index a7294d2ad1b1a23d479cc443e1a7cf667b1e6ea7..66bc81dfb4224da0ec5405d3fe8267fb30c30552 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",
+    },
+
     # riscv64 below refers to contemporary RISCV Architecture
     # specifications,
     "BSD-riscv64" => {
index 3748788eec6cb0c9d55cc73ac831a579f3c492f2..84485abae5033a0eaa458272d42d58166e826276 100755 (executable)
@@ -754,6 +754,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...