summaryrefslogtreecommitdiffstats
path: root/crypto/aes/asm/aesni-sha256-x86_64.pl
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2024-03-01 08:07:42 +0100
committerTomas Mraz <tomas@openssl.org>2024-04-17 09:38:06 +0200
commit25391acc140e215774242bf3b0a51d59754a23f4 (patch)
tree451ad805e44b44e5ee27e439632f955f9ab9746b /crypto/aes/asm/aesni-sha256-x86_64.pl
parentextend x86_64-xlate.pl perlasm so it can handle .rodata sections properly (diff)
downloadopenssl-25391acc140e215774242bf3b0a51d59754a23f4.tar.xz
openssl-25391acc140e215774242bf3b0a51d59754a23f4.zip
Unable to run asm code on OpenBSD (amd64)
In order to get asm code running on OpenBSD we must place all constants into .rodata sections. davidben@ also pointed out we need to adjust `x86_64-xlate.pl` perlasm script to adjust read-olny sections for various flavors (OSes). Those changes were cherry-picked from boringssl. closes #23312 Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23997)
Diffstat (limited to 'crypto/aes/asm/aesni-sha256-x86_64.pl')
-rw-r--r--crypto/aes/asm/aesni-sha256-x86_64.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/aes/asm/aesni-sha256-x86_64.pl b/crypto/aes/asm/aesni-sha256-x86_64.pl
index 5521766a6a..5c8bb0fbcc 100644
--- a/crypto/aes/asm/aesni-sha256-x86_64.pl
+++ b/crypto/aes/asm/aesni-sha256-x86_64.pl
@@ -168,6 +168,7 @@ $code.=<<___;
.cfi_endproc
.size $func,.-$func
+.section .rodata align=64
.align 64
.type $TABLE,\@object
$TABLE:
@@ -210,6 +211,7 @@ $TABLE:
.long 0,0,0,0, 0,0,0,0
.asciz "AESNI-CBC+SHA256 stitch for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
.align 64
+.previous
___
######################################################################