From 757c9f79255f3bb3ac24cf82b784a3e934c0327d Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 9 Mar 2024 18:27:18 +0100 Subject: [PATCH] Execute build/refresh.sh. --- build/coff/sha256-portable-x86_64.s | 1 + build/coff/sha256-x86_64.s | 3 ++- build/elf/sha256-portable-x86_64.s | 1 + build/elf/sha256-x86_64.s | 3 ++- build/mach-o/sha256-portable-x86_64.s | 1 + build/mach-o/sha256-x86_64.s | 3 ++- build/win64/sha256-x86_64.asm | 6 ++++-- 7 files changed, 13 insertions(+), 5 deletions(-) diff --git a/build/coff/sha256-portable-x86_64.s b/build/coff/sha256-portable-x86_64.s index 58255277..d0fe6ce3 100644 --- a/build/coff/sha256-portable-x86_64.s +++ b/build/coff/sha256-portable-x86_64.s @@ -1668,6 +1668,7 @@ blst_sha256_block_data_order: .LSEH_end_blst_sha256_block_data_order: #ifndef __BLST_PORTABLE__ +.section .rdata .p2align 6 K256: diff --git a/build/coff/sha256-x86_64.s b/build/coff/sha256-x86_64.s index cd92c020..8245cff1 100644 --- a/build/coff/sha256-x86_64.s +++ b/build/coff/sha256-x86_64.s @@ -1,6 +1,6 @@ .comm __blst_platform_cap,4 -.text +.section .rdata .p2align 6 K256: @@ -25,6 +25,7 @@ K256: .long 0x03020100,0x0b0a0908,0xffffffff,0xffffffff .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,64,100,111,116,45,97,115,109,0 +.text .globl blst_sha256_block_data_order_shaext .def blst_sha256_block_data_order_shaext; .scl 2; .type 32; .endef diff --git a/build/elf/sha256-portable-x86_64.s b/build/elf/sha256-portable-x86_64.s index d1c53db6..645c92f2 100644 --- a/build/elf/sha256-portable-x86_64.s +++ b/build/elf/sha256-portable-x86_64.s @@ -1664,6 +1664,7 @@ blst_sha256_block_data_order: .size blst_sha256_block_data_order,.-blst_sha256_block_data_order #ifndef __BLST_PORTABLE__ +.section .rodata .align 64 .type K256,@object K256: diff --git a/build/elf/sha256-x86_64.s b/build/elf/sha256-x86_64.s index 99103a58..b16a38f5 100644 --- a/build/elf/sha256-x86_64.s +++ b/build/elf/sha256-x86_64.s @@ -1,6 +1,6 @@ .comm __blst_platform_cap,4 -.text +.section .rodata .align 64 .type K256,@object K256: @@ -25,6 +25,7 @@ K256: .long 0x03020100,0x0b0a0908,0xffffffff,0xffffffff .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,64,100,111,116,45,97,115,109,0 +.text .globl blst_sha256_block_data_order_shaext .hidden blst_sha256_block_data_order_shaext .type blst_sha256_block_data_order_shaext,@function diff --git a/build/mach-o/sha256-portable-x86_64.s b/build/mach-o/sha256-portable-x86_64.s index 2e6c7da1..12e3fad6 100644 --- a/build/mach-o/sha256-portable-x86_64.s +++ b/build/mach-o/sha256-portable-x86_64.s @@ -1664,6 +1664,7 @@ L$rounds_16_xx: #ifndef __BLST_PORTABLE__ +.section __TEXT,__const .p2align 6 K256: diff --git a/build/mach-o/sha256-x86_64.s b/build/mach-o/sha256-x86_64.s index 9df3a6b0..5354de59 100644 --- a/build/mach-o/sha256-x86_64.s +++ b/build/mach-o/sha256-x86_64.s @@ -1,6 +1,6 @@ .comm ___blst_platform_cap,4 -.text +.section __TEXT,__const .p2align 6 K256: @@ -25,6 +25,7 @@ K256: .long 0x03020100,0x0b0a0908,0xffffffff,0xffffffff .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,64,100,111,116,45,97,115,109,0 +.text .globl _blst_sha256_block_data_order_shaext .private_extern _blst_sha256_block_data_order_shaext diff --git a/build/win64/sha256-x86_64.asm b/build/win64/sha256-x86_64.asm index d32f86e6..f4e3ec9f 100644 --- a/build/win64/sha256-x86_64.asm +++ b/build/win64/sha256-x86_64.asm @@ -1,9 +1,9 @@ OPTION DOTNAME _DATA SEGMENT COMM __blst_platform_cap:DWORD:1 -_DATA ENDS -.text$ SEGMENT ALIGN(256) 'CODE' +_DATA ENDS +.rdata SEGMENT READONLY ALIGN(256) ALIGN 64 K256:: @@ -31,6 +31,8 @@ DB 83,72,65,50,53,54,32,98,108,111,99,107,32,116,114,97 DB 110,115,102,111,114,109,32,102,111,114,32,120,56,54,95,54 DB 52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121 DB 32,64,100,111,116,45,97,115,109,0 +.rdata ENDS +.text$ SEGMENT ALIGN(256) 'CODE' PUBLIC blst_sha256_block_data_order_shaext