Skip to content

Commit

Permalink
HACK: Workaround Morello LLVM bug by moving ecp_nistz256_precomputed …
Browse files Browse the repository at this point in the history
…to rodata
  • Loading branch information
bsdjhb committed Jul 5, 2024
1 parent e912b2b commit c87a2b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/openssl/crypto/ec/asm/ecp_nistz256-armv8.pl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
die "insane number of elements" if ($#arr != 64*16*37-1);

$code.=<<___;
.rodata
.globl ecp_nistz256_precomputed
.type ecp_nistz256_precomputed,%object
.align 12
Expand All @@ -103,6 +104,7 @@
}
$code.=<<___;
.size ecp_nistz256_precomputed,.-ecp_nistz256_precomputed
.text
.align 5
.Lpoly:
.quad 0xffffffffffffffff,0x00000000ffffffff,0x0000000000000000,0xffffffff00000001
Expand Down
2 changes: 2 additions & 0 deletions sys/crypto/openssl/aarch64/ecp_nistz256-armv8.S
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "arm_arch.h"

.text
.section .rodata
.globl ecp_nistz256_precomputed
.type ecp_nistz256_precomputed,%object
.align 12
Expand Down Expand Up @@ -2375,6 +2376,7 @@ ecp_nistz256_precomputed:
.byte 0xec,0xf0,0x42,0x88,0xd0,0x81,0x51,0xf9,0x1b,0xbc,0x43,0xa4,0x37,0xf1,0xd7,0x90,0x21,0x7e,0xa0,0x3e,0x63,0xfb,0x21,0xfa,0x12,0xfb,0xde,0xc7,0xbf,0xb3,0x58,0xe7,0x76,0x42,0x20,0x01,0x3d,0x66,0x80,0xf1,0xb8,0xaf,0xfa,0x7d,0x96,0x89,0x36,0x48,0x95,0xd9,0x6e,0x6d,0xe6,0x4f,0xff,0x2a,0x47,0x61,0xf2,0x04,0xb7,0x83,0x14,0xce
.byte 0x0a,0x3c,0x73,0x17,0x50,0x88,0x03,0x25,0x4a,0xe3,0x13,0x55,0x8b,0x7e,0x50,0x38,0xfc,0x14,0x0b,0x04,0x8e,0xa8,0x5b,0xd6,0x72,0x20,0x60,0xe9,0xaa,0x22,0x82,0x11,0xc6,0xc4,0xd7,0xb9,0xc8,0x0c,0x7e,0x05,0xfb,0x90,0xe4,0x9c,0x28,0x89,0x29,0x99,0x63,0x4d,0xec,0x7b,0x50,0xbd,0xd8,0xa3,0x5b,0x50,0x77,0x19,0x81,0x92,0xce,0x82
.size ecp_nistz256_precomputed,.-ecp_nistz256_precomputed
.text
.align 5
.Lpoly:
.quad 0xffffffffffffffff,0x00000000ffffffff,0x0000000000000000,0xffffffff00000001
Expand Down

0 comments on commit c87a2b3

Please sign in to comment.