rust-ring: add missing .rodata annotation for SHA-256. SIGSEGV in ncspot

reported by Matthias Schmidt.
This commit is contained in:
tb 2023-01-28 13:20:40 +00:00
parent 9a7835a75c
commit faf945f250
2 changed files with 20 additions and 0 deletions

View File

@ -2,6 +2,7 @@ COMMENT = ring crate source patched for x-only assembly
VERSION = 0.16.20
DISTNAME = ring-${VERSION}
REVISION = 0
MASTER_SITES = https://crates.io/api/v1/crates/

View File

@ -0,0 +1,19 @@
Index: pregenerated/sha256-x86_64-elf.S
--- pregenerated/sha256-x86_64-elf.S.orig
+++ pregenerated/sha256-x86_64-elf.S
@@ -1735,6 +1735,7 @@ GFp_sha256_block_data_order:
.byte 0xf3,0xc3
.cfi_endproc
.size GFp_sha256_block_data_order,.-GFp_sha256_block_data_order
+.rodata
.align 64
.type K256,@object
K256:
@@ -1778,6 +1779,7 @@ K256:
.long 0xffffffff,0xffffffff,0x03020100,0x0b0a0908
.long 0xffffffff,0xffffffff,0x03020100,0x0b0a0908
.byte 83,72,65,50,53,54,32,98,108,111,99,107,32,116,114,97,110,115,102,111,114,109,32,102,111,114,32,120,56,54,95,54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
+.previous
.type GFp_sha256_block_data_order_ssse3,@function
.align 64
GFp_sha256_block_data_order_ssse3: