openbsd-ports/security/gnutls/patches/patch-lib_accelerated_x86_elf_sha256-ssse3-x86_s
tb cb2bf76c52 gnutls: amd64 and aarch64 assembly fixes. This is basically perlasm
generated code with a few sprinkles of gnu. Passes regress except
for three tests that are unrelated to these changes.
2023-01-19 12:41:35 +00:00

20 lines
1.2 KiB
Plaintext

Index: lib/accelerated/x86/elf/sha256-ssse3-x86.s
--- lib/accelerated/x86/elf/sha256-ssse3-x86.s.orig
+++ lib/accelerated/x86/elf/sha256-ssse3-x86.s
@@ -466,6 +466,7 @@ sha256_block_data_order:
popl %ebx
popl %ebp
ret
+.rodata
.align 64
.L001K256:
.long 1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298
@@ -475,6 +476,7 @@ sha256_block_data_order:
.byte 67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97
.byte 112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103
.byte 62,0
+.previous
.align 16
.L008unrolled:
leal -96(%esp),%esp