Skip to content

Commit

Permalink
asm/sha256-x86_64.pl: move K256 to .rodata segment.
Browse files Browse the repository at this point in the history
OpenBSD kernel appears to refuse to wire .text pages upon data load.
  • Loading branch information
dot-asm committed Mar 16, 2024
1 parent dae1f94 commit 6cca12a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/asm/sha256-portable-x86_64.pl
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ ()
.size $func,.-$func

#ifndef __BLST_PORTABLE__
.section .rodata
.align 64
.type $TABLE,\@object
$TABLE:
Expand Down
3 changes: 2 additions & 1 deletion src/asm/sha256-x86_64.pl
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@

$code=<<___;
.comm __blst_platform_cap,4
.text

.section .rodata
.align 64
.type $TABLE,\@object
$TABLE:
Expand All @@ -88,6 +88,7 @@
.long 0x03020100,0x0b0a0908,0xffffffff,0xffffffff
.long 0xffffffff,0xffffffff,0x03020100,0x0b0a0908
.asciz "SHA256 block transform for x86_64, CRYPTOGAMS by \@dot-asm"
.text
___

######################################################################
Expand Down

0 comments on commit 6cca12a

Please sign in to comment.