sync ports with The Matrix
This commit is contained in:
parent
cbcec355c0
commit
c376d85ea0
190 changed files with 4781 additions and 1132 deletions
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_chacha_asm_chacha-x86_64_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_chacha_asm_chacha-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_chacha_asm_chacha-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/chacha/asm/chacha-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/chacha/asm/chacha-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/chacha/asm/chacha-x86_64.pl
|
||||
+@@ -78,6 +78,7 @@ $code.=<<___;
|
||||
+
|
||||
+ .extern OPENSSL_ia32cap_P
|
||||
+
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lzero:
|
||||
+ .long 0,0,0,0
|
||||
+@@ -107,6 +108,7 @@ $code.=<<___;
|
||||
+ .Lsixteen:
|
||||
+ .long 16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16
|
||||
+ .asciz "ChaCha20 for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ sub AUTOLOAD() # thunk [simplified] 32-bit style perlasm
|
|
@ -0,0 +1,24 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_aes128gcmsiv-x86_64_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_aes128gcmsiv-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_aes128gcmsiv-x86_64_pl
|
||||
@@ -0,0 +1,20 @@
|
||||
+Index: third_party/boringssl/src/crypto/cipher_extra/asm/aes128gcmsiv-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/cipher_extra/asm/aes128gcmsiv-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/cipher_extra/asm/aes128gcmsiv-x86_64.pl
|
||||
+@@ -32,7 +32,7 @@ open OUT,"| \"$^X\" \"$xlate\" $flavour \"$output\"";
|
||||
+ *STDOUT=*OUT;
|
||||
+
|
||||
+ $code.=<<___;
|
||||
+-.data
|
||||
++.rodata
|
||||
+
|
||||
+ .align 16
|
||||
+ one:
|
||||
+@@ -66,6 +66,7 @@ con3:
|
||||
+ .byte -1,-1,-1,-1,-1,-1,-1,-1,4,5,6,7,4,5,6,7
|
||||
+ and_mask:
|
||||
+ .long 0,0xffffffff, 0xffffffff, 0xffffffff
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ $code.=<<___;
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_chacha20_poly1305_x86_64_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_chacha20_poly1305_x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_chacha20_poly1305_x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl
|
||||
+@@ -42,6 +42,7 @@ $code.=<<___;
|
||||
+
|
||||
+ chacha20_poly1305_constants:
|
||||
+
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lchacha20_consts:
|
||||
+ .byte 'e','x','p','a','n','d',' ','3','2','-','b','y','t','e',' ','k'
|
||||
+@@ -79,6 +80,7 @@ chacha20_poly1305_constants:
|
||||
+ .byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x00
|
||||
+ .byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00
|
||||
+ .byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ my ($oup,$inp,$inl,$adp,$keyp,$itr1,$itr2,$adl)=("%rdi","%rsi","%rbx","%rcx","%r9","%rcx","%r8","%r8");
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_aesni-x86_64_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_aesni-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_aesni-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesni-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesni-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesni-x86_64.pl
|
||||
+@@ -4727,6 +4727,7 @@ ___
|
||||
+ }
|
||||
+
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lbswap_mask:
|
||||
+ .byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
|
||||
+@@ -4749,6 +4750,7 @@ $code.=<<___;
|
||||
+
|
||||
+ .asciz "AES for Intel AES-NI, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
|
|
@ -0,0 +1,15 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_vpaes-x86_64_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_vpaes-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_vpaes-x86_64_pl
|
||||
@@ -0,0 +1,11 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/aes/asm/vpaes-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/aes/asm/vpaes-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/aes/asm/vpaes-x86_64.pl
|
||||
+@@ -1288,6 +1288,7 @@ _vpaes_preheat:
|
||||
+ ## ##
|
||||
+ ########################################################
|
||||
+ .type _vpaes_consts,\@object
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ _vpaes_consts:
|
||||
+ .Lk_inv: # inv, inva
|
|
@ -0,0 +1,21 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_bn_asm_x86_64-mont5_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_bn_asm_x86_64-mont5_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_bn_asm_x86_64-mont5_pl
|
||||
@@ -0,0 +1,17 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/bn/asm/x86_64-mont5.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/bn/asm/x86_64-mont5.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/bn/asm/x86_64-mont5.pl
|
||||
+@@ -3544,11 +3544,13 @@ $code.=<<___;
|
||||
+ ___
|
||||
+ }
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Linc:
|
||||
+ .long 0,0, 1,1
|
||||
+ .long 2,2, 2,2
|
||||
+ .asciz "Montgomery Multiplication with scatter/gather for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_ec_asm_p256-x86_64-asm_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_ec_asm_p256-x86_64-asm_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_ec_asm_p256-x86_64-asm_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl
|
||||
+@@ -62,6 +62,7 @@ $code.=<<___;
|
||||
+ .extern OPENSSL_ia32cap_P
|
||||
+
|
||||
+ # The polynomial
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lpoly:
|
||||
+ .quad 0xffffffffffffffff, 0x00000000ffffffff, 0x0000000000000000, 0xffffffff00000001
|
||||
+@@ -80,6 +81,7 @@ $code.=<<___;
|
||||
+ .quad 0xf3b9cac2fc632551, 0xbce6faada7179e84, 0xffffffffffffffff, 0xffffffff00000000
|
||||
+ .LordK:
|
||||
+ .quad 0xccd1c8aaee00bc4f
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ {
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_aesni-gcm-x86_64_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_aesni-gcm-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_aesni-gcm-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl
|
||||
+@@ -982,6 +982,7 @@ $code.=<<___;
|
||||
+ ___
|
||||
+
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lbswap_mask:
|
||||
+ .byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
|
||||
+@@ -995,6 +996,7 @@ $code.=<<___;
|
||||
+ .byte 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
+ .asciz "AES-NI GCM module for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+ if ($win64) {
|
||||
+ $rec="%rcx";
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-ssse3-x86_64_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-ssse3-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-ssse3-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl
|
||||
+@@ -333,6 +333,7 @@ $code .= <<____;
|
||||
+ .cfi_endproc
|
||||
+ .size gcm_ghash_ssse3,.-gcm_ghash_ssse3
|
||||
+
|
||||
++.rodata
|
||||
+ .align 16
|
||||
+ # .Lreverse_bytes is a permutation which, if applied with pshufb, reverses the
|
||||
+ # bytes in an XMM register.
|
||||
+@@ -341,6 +342,7 @@ $code .= <<____;
|
||||
+ # .Llow4_mask is an XMM mask which selects the low four bits of each byte.
|
||||
+ .Llow4_mask:
|
||||
+ .quad 0x0f0f0f0f0f0f0f0f, 0x0f0f0f0f0f0f0f0f
|
||||
++.previous
|
||||
+ ____
|
||||
+
|
||||
+ if ($win64) {
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-x86_64_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-x86_64.pl
|
||||
+@@ -1275,6 +1275,7 @@ ___
|
||||
+ }
|
||||
+
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lbswap_mask:
|
||||
+ .byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
|
||||
+@@ -1286,6 +1287,7 @@ $code.=<<___;
|
||||
+
|
||||
+ .asciz "GHASH for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ if ($win64) {
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha1-x86_64_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha1-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha1-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha1-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha1-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha1-x86_64.pl
|
||||
+@@ -1815,6 +1815,7 @@ ___
|
||||
+ }
|
||||
+ }
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ K_XX_XX:
|
||||
+ .long 0x5a827999,0x5a827999,0x5a827999,0x5a827999 # K_00_19
|
||||
+@@ -1833,6 +1834,7 @@ ___
|
||||
+ $code.=<<___;
|
||||
+ .asciz "SHA1 block transform for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
|
|
@ -0,0 +1,35 @@
|
|||
Index: src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha512-x86_64_pl
|
||||
--- src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha512-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/b/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha512-x86_64_pl
|
||||
@@ -0,0 +1,31 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha512-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha512-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha512-x86_64.pl
|
||||
+@@ -404,6 +404,7 @@ ___
|
||||
+
|
||||
+ if ($SZ==4) {
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .type $TABLE,\@object
|
||||
+ $TABLE:
|
||||
+@@ -447,9 +448,11 @@ $TABLE:
|
||||
+ .long 0xffffffff,0xffffffff,0x03020100,0x0b0a0908
|
||||
+ .long 0xffffffff,0xffffffff,0x03020100,0x0b0a0908
|
||||
+ .asciz "SHA256 block transform for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+ } else {
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .type $TABLE,\@object
|
||||
+ $TABLE:
|
||||
+@@ -537,6 +540,7 @@ $TABLE:
|
||||
+ .quad 0x0001020304050607,0x08090a0b0c0d0e0f
|
||||
+ .quad 0x0001020304050607,0x08090a0b0c0d0e0f
|
||||
+ .asciz "SHA512 block transform for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+ }
|
||||
+
|
|
@ -0,0 +1,30 @@
|
|||
Index: src/3rdparty/chromium/chrome/browser/extensions/api/enterprise_reporting_private/chrome_desktop_report_request_helper.cc
|
||||
--- src/3rdparty/chromium/chrome/browser/extensions/api/enterprise_reporting_private/chrome_desktop_report_request_helper.cc.orig
|
||||
+++ src/3rdparty/chromium/chrome/browser/extensions/api/enterprise_reporting_private/chrome_desktop_report_request_helper.cc
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "base/win/registry.h"
|
||||
#endif
|
||||
|
||||
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
#include "base/environment.h"
|
||||
#include "base/nix/xdg_util.h"
|
||||
#endif
|
||||
@@ -226,7 +226,7 @@ base::FilePath GetEndpointVerificationDir() {
|
||||
return *GetEndpointVerificationDirOverride();
|
||||
#if defined(OS_WIN)
|
||||
if (!base::PathService::Get(base::DIR_LOCAL_APP_DATA, &path))
|
||||
-#elif defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#elif defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
std::unique_ptr<base::Environment> env(base::Environment::Create());
|
||||
path = base::nix::GetXDGDirectory(env.get(), base::nix::kXdgConfigHomeEnvVar,
|
||||
base::nix::kDotConfigDir);
|
||||
@@ -237,7 +237,7 @@ base::FilePath GetEndpointVerificationDir() {
|
||||
if (true)
|
||||
#endif
|
||||
return path;
|
||||
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
path = path.AppendASCII("google");
|
||||
#else
|
||||
path = path.AppendASCII("Google");
|
|
@ -0,0 +1,21 @@
|
|||
Index: src/3rdparty/chromium/chrome/browser/extensions/api/enterprise_reporting_private/device_info_fetcher.cc
|
||||
--- src/3rdparty/chromium/chrome/browser/extensions/api/enterprise_reporting_private/device_info_fetcher.cc.orig
|
||||
+++ src/3rdparty/chromium/chrome/browser/extensions/api/enterprise_reporting_private/device_info_fetcher.cc
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "chrome/browser/extensions/api/enterprise_reporting_private/device_info_fetcher_mac.h"
|
||||
#elif defined(OS_WIN)
|
||||
#include "chrome/browser/extensions/api/enterprise_reporting_private/device_info_fetcher_win.h"
|
||||
-#elif defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#elif defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
#include "chrome/browser/extensions/api/enterprise_reporting_private/device_info_fetcher_linux.h"
|
||||
#endif
|
||||
|
||||
@@ -58,7 +58,7 @@ std::unique_ptr<DeviceInfoFetcher> DeviceInfoFetcher::
|
||||
return std::make_unique<DeviceInfoFetcherMac>();
|
||||
#elif defined(OS_WIN)
|
||||
return std::make_unique<DeviceInfoFetcherWin>();
|
||||
-#elif defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#elif defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
return std::make_unique<DeviceInfoFetcherLinux>();
|
||||
#else
|
||||
return std::make_unique<StubDeviceFetcher>();
|
|
@ -0,0 +1,29 @@
|
|||
Index: src/3rdparty/chromium/chrome/browser/extensions/api/enterprise_reporting_private/device_info_fetcher_linux.cc
|
||||
--- src/3rdparty/chromium/chrome/browser/extensions/api/enterprise_reporting_private/device_info_fetcher_linux.cc.orig
|
||||
+++ src/3rdparty/chromium/chrome/browser/extensions/api/enterprise_reporting_private/device_info_fetcher_linux.cc
|
||||
@@ -8,7 +8,9 @@
|
||||
#include <gio/gio.h>
|
||||
#endif // defined(USE_GIO)
|
||||
#include <sys/stat.h>
|
||||
+#if !defined(OS_BSD)
|
||||
#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -107,6 +109,7 @@ enterprise_reporting_private::SettingValue GetScreenlo
|
||||
// Implements the logic from the native host installation script. First find the
|
||||
// root device identifier, then locate its parent and get its type.
|
||||
enterprise_reporting_private::SettingValue GetDiskEncrypted() {
|
||||
+#if !defined(OS_BSD)
|
||||
struct stat info;
|
||||
// First figure out the device identifier. Fail fast if this fails.
|
||||
if (stat("/", &info) != 0)
|
||||
@@ -130,6 +133,7 @@ enterprise_reporting_private::SettingValue GetDiskEncr
|
||||
}
|
||||
return enterprise_reporting_private::SETTING_VALUE_UNKNOWN;
|
||||
}
|
||||
+#endif
|
||||
return enterprise_reporting_private::SETTING_VALUE_DISABLED;
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
Index: src/3rdparty/chromium/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.cc
|
||||
--- src/3rdparty/chromium/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.cc.orig
|
||||
+++ src/3rdparty/chromium/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.cc
|
||||
@@ -22,6 +22,7 @@ static base::LazyInstance<scoped_refptr<StorageDeviceL
|
||||
|
||||
void RemovableStorageProvider::GetAllDevices(DeviceListReadyCallback callback) {
|
||||
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
||||
+#if !defined(OS_BSD)
|
||||
if (g_test_device_list.Get().get() != nullptr) {
|
||||
base::ThreadTaskRunnerHandle::Get()->PostTask(
|
||||
FROM_HERE,
|
||||
@@ -35,6 +36,9 @@ void RemovableStorageProvider::GetAllDevices(DeviceLis
|
||||
base::TaskShutdownBehavior::SKIP_ON_SHUTDOWN},
|
||||
base::BindOnce(&RemovableStorageProvider::PopulateDeviceList),
|
||||
std::move(callback));
|
||||
+#else
|
||||
+ NOTIMPLEMENTED();
|
||||
+#endif
|
||||
}
|
||||
|
||||
// static
|
|
@ -0,0 +1,30 @@
|
|||
Index: src/3rdparty/chromium/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc
|
||||
--- src/3rdparty/chromium/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc.orig
|
||||
+++ src/3rdparty/chromium/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "extensions/browser/process_manager.h"
|
||||
#include "extensions/common/error_utils.h"
|
||||
|
||||
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
#include "extensions/common/permissions/permissions_data.h"
|
||||
#endif
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace {
|
||||
bool CanEnableAudioDebugRecordingsFromExtension(
|
||||
const extensions::Extension* extension) {
|
||||
bool enabled_by_permissions = false;
|
||||
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
if (extension) {
|
||||
enabled_by_permissions =
|
||||
extension->permissions_data()->active_permissions().HasAPIPermission(
|
||||
@@ -589,7 +589,7 @@ void WebrtcLoggingPrivateStartEventLoggingFunction::Fi
|
||||
|
||||
ExtensionFunction::ResponseAction
|
||||
WebrtcLoggingPrivateGetLogsDirectoryFunction::Run() {
|
||||
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
// Unlike other WebrtcLoggingPrivate functions that take a RequestInfo object,
|
||||
// this function shouldn't be called by a component extension on behalf of
|
||||
// some web code. It returns a DirectoryEntry for use directly in the calling
|
|
@ -0,0 +1,12 @@
|
|||
Index: src/3rdparty/chromium/components/discardable_memory/service/discardable_shared_memory_manager.cc
|
||||
--- src/3rdparty/chromium/components/discardable_memory/service/discardable_shared_memory_manager.cc.orig
|
||||
+++ src/3rdparty/chromium/components/discardable_memory/service/discardable_shared_memory_manager.cc
|
||||
@@ -168,7 +168,7 @@ int64_t GetDefaultMemoryLimit() {
|
||||
// Limits the number of FDs used to 32, assuming a 4MB allocation size.
|
||||
int64_t max_default_memory_limit = 128 * kMegabyte;
|
||||
#else
|
||||
- int64_t max_default_memory_limit = 512 * kMegabyte;
|
||||
+ int64_t max_default_memory_limit = 128 * kMegabyte;
|
||||
#endif
|
||||
|
||||
// Use 1/8th of discardable memory on low-end devices.
|
|
@ -0,0 +1,12 @@
|
|||
Index: src/3rdparty/chromium/components/network_session_configurator/browser/network_session_configurator.cc
|
||||
--- src/3rdparty/chromium/components/network_session_configurator/browser/network_session_configurator.cc.orig
|
||||
+++ src/3rdparty/chromium/components/network_session_configurator/browser/network_session_configurator.cc
|
||||
@@ -749,7 +749,7 @@ net::URLRequestContextBuilder::HttpCacheParams::Type C
|
||||
}
|
||||
#endif // #if !defined(OS_ANDROID)
|
||||
|
||||
-#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
return net::URLRequestContextBuilder::HttpCacheParams::DISK_SIMPLE;
|
||||
#else
|
||||
return net::URLRequestContextBuilder::HttpCacheParams::DISK_BLOCKFILE;
|
|
@ -0,0 +1,30 @@
|
|||
Index: src/3rdparty/chromium/components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.cc
|
||||
--- src/3rdparty/chromium/components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.cc.orig
|
||||
+++ src/3rdparty/chromium/components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.cc
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#include "content/public/child/dwrite_font_proxy_init_win.h"
|
||||
-#elif defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#elif defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
#include "components/services/font/public/cpp/font_loader.h"
|
||||
#endif
|
||||
|
||||
@@ -35,7 +35,7 @@ PaintPreviewCompositorCollectionImpl::PaintPreviewComp
|
||||
// Initialize font access for Skia.
|
||||
#if defined(OS_WIN)
|
||||
content::InitializeDWriteFontProxy();
|
||||
-#elif defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#elif defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
mojo::PendingRemote<font_service::mojom::FontService> font_service;
|
||||
content::UtilityThread::Get()->BindHostReceiver(
|
||||
font_service.InitWithNewPipeAndPassReceiver());
|
||||
@@ -54,7 +54,7 @@ PaintPreviewCompositorCollectionImpl::PaintPreviewComp
|
||||
// encoding to PNG or we could provide our own codec implementations.
|
||||
|
||||
// Sanity check that fonts are working.
|
||||
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
// No WebSandbox is provided on Linux so the local fonts aren't accessible.
|
||||
// This is fine since since the subsetted fonts are provided in the SkPicture.
|
||||
// However, we still need to check that the SkFontMgr starts as it is used by
|
|
@ -0,0 +1,21 @@
|
|||
Index: src/3rdparty/chromium/components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.h
|
||||
--- src/3rdparty/chromium/components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.h.orig
|
||||
+++ src/3rdparty/chromium/components/services/paint_preview_compositor/paint_preview_compositor_collection_impl.h
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "mojo/public/cpp/bindings/pending_receiver.h"
|
||||
#include "mojo/public/cpp/bindings/receiver.h"
|
||||
|
||||
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
#include "components/services/font/public/cpp/font_loader.h"
|
||||
#include "third_party/skia/include/core/SkRefCnt.h"
|
||||
#endif
|
||||
@@ -74,7 +74,7 @@ class PaintPreviewCompositorCollectionImpl
|
||||
std::unique_ptr<PaintPreviewCompositorImpl>>
|
||||
compositors_;
|
||||
|
||||
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
|
||||
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
||||
sk_sp<font_service::FontLoader> font_loader_;
|
||||
#endif
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
Index: src/3rdparty/chromium/extensions/browser/api/networking_private/networking_private_delegate_factory.cc
|
||||
--- src/3rdparty/chromium/extensions/browser/api/networking_private/networking_private_delegate_factory.cc.orig
|
||||
+++ src/3rdparty/chromium/extensions/browser/api/networking_private/networking_private_delegate_factory.cc
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
#if defined(OS_CHROMEOS)
|
||||
#include "extensions/browser/api/networking_private/networking_private_chromeos.h"
|
||||
-#elif defined(OS_LINUX)
|
||||
+#elif defined(OS_LINUX) || defined(OS_BSD)
|
||||
#include "extensions/browser/api/networking_private/networking_private_linux.h"
|
||||
#elif defined(OS_WIN) || defined(OS_MAC)
|
||||
#include "components/wifi/wifi_service.h"
|
||||
@@ -61,7 +61,7 @@ KeyedService* NetworkingPrivateDelegateFactory::BuildS
|
||||
NetworkingPrivateDelegate* delegate;
|
||||
#if defined(OS_CHROMEOS)
|
||||
delegate = new NetworkingPrivateChromeOS(browser_context);
|
||||
-#elif defined(OS_LINUX)
|
||||
+#elif defined(OS_LINUX) || defined(OS_BSD)
|
||||
delegate = new NetworkingPrivateLinux();
|
||||
#elif defined(OS_WIN) || defined(OS_MAC)
|
||||
std::unique_ptr<wifi::WiFiService> wifi_service(wifi::WiFiService::Create());
|
|
@ -0,0 +1,21 @@
|
|||
Index: src/3rdparty/chromium/services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics.h
|
||||
--- src/3rdparty/chromium/services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics.h.orig
|
||||
+++ src/3rdparty/chromium/services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics.h
|
||||
@@ -45,7 +45,7 @@ class COMPONENT_EXPORT(
|
||||
mojom::RawOSMemDump*);
|
||||
static std::vector<mojom::VmRegionPtr> GetProcessMemoryMaps(base::ProcessId);
|
||||
|
||||
-#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID)
|
||||
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD)
|
||||
static void SetProcSmapsForTesting(FILE*);
|
||||
#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID)
|
||||
|
||||
@@ -61,7 +61,7 @@ class COMPONENT_EXPORT(
|
||||
static std::vector<mojom::VmRegionPtr> GetProcessModules(base::ProcessId);
|
||||
#endif
|
||||
|
||||
-#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID)
|
||||
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_BSD)
|
||||
// Provides information on the dump state of resident pages. These values are
|
||||
// written to logs. New enum values can be added, but existing enums must
|
||||
// never be renumbered or deleted and reused.
|
|
@ -0,0 +1,84 @@
|
|||
Index: src/3rdparty/chromium/services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics_linux.cc
|
||||
--- src/3rdparty/chromium/services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics_linux.cc.orig
|
||||
+++ src/3rdparty/chromium/services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics_linux.cc
|
||||
@@ -5,7 +5,9 @@
|
||||
#include <dlfcn.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdint.h>
|
||||
+#if !defined(__OpenBSD__)
|
||||
#include <sys/prctl.h>
|
||||
+#endif
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -27,8 +29,10 @@
|
||||
#include "build/build_config.h"
|
||||
#include "services/resource_coordinator/public/cpp/memory_instrumentation/os_metrics.h"
|
||||
|
||||
+#if !defined(OS_BSD)
|
||||
// Symbol with virtual address of the start of ELF header of the current binary.
|
||||
extern char __ehdr_start;
|
||||
+#endif
|
||||
|
||||
namespace memory_instrumentation {
|
||||
|
||||
@@ -40,6 +44,7 @@ using mojom::VmRegionPtr;
|
||||
const char kClearPeakRssCommand[] = "5";
|
||||
const uint32_t kMaxLineSize = 4096;
|
||||
|
||||
+#if !defined(OS_BSD)
|
||||
// TODO(chiniforooshan): Many of the utility functions in this anonymous
|
||||
// namespace should move to base/process/process_metrics_linux.cc to make the
|
||||
// code a lot cleaner. However, we should do so after we made sure the metrics
|
||||
@@ -269,6 +274,7 @@ class ScopedProcessSetDumpable {
|
||||
|
||||
bool was_dumpable_;
|
||||
};
|
||||
+#endif
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -282,6 +288,9 @@ void OSMetrics::SetProcSmapsForTesting(FILE* f) {
|
||||
// static
|
||||
bool OSMetrics::FillOSMemoryDump(base::ProcessId pid,
|
||||
mojom::RawOSMemDump* dump) {
|
||||
+#if defined(OS_BSD)
|
||||
+ return false;
|
||||
+#else
|
||||
// TODO(chiniforooshan): There is no need to read both /statm and /status
|
||||
// files. Refactor to get everything from /status using ProcessMetric.
|
||||
auto statm_file = GetProcPidDir(pid).Append("statm");
|
||||
@@ -338,10 +347,12 @@ bool OSMetrics::FillOSMemoryDump(base::ProcessId pid,
|
||||
#endif // defined(OS_ANDROID)
|
||||
|
||||
return true;
|
||||
+#endif
|
||||
}
|
||||
|
||||
// static
|
||||
std::vector<VmRegionPtr> OSMetrics::GetProcessMemoryMaps(base::ProcessId pid) {
|
||||
+#if !defined(OS_BSD)
|
||||
std::vector<VmRegionPtr> maps;
|
||||
uint32_t res = 0;
|
||||
if (g_proc_smaps_for_testing) {
|
||||
@@ -359,8 +370,13 @@ std::vector<VmRegionPtr> OSMetrics::GetProcessMemoryMa
|
||||
return std::vector<VmRegionPtr>();
|
||||
|
||||
return maps;
|
||||
+#else
|
||||
+ NOTIMPLEMENTED();
|
||||
+ return std::vector<VmRegionPtr>();
|
||||
+#endif
|
||||
}
|
||||
|
||||
+#if !defined(OS_BSD)
|
||||
// static
|
||||
OSMetrics::MappedAndResidentPagesDumpState OSMetrics::GetMappedAndResidentPages(
|
||||
const size_t start_address,
|
||||
@@ -448,5 +464,6 @@ size_t OSMetrics::GetPeakResidentSetSize(base::Process
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
+#endif
|
||||
|
||||
} // namespace memory_instrumentation
|
|
@ -0,0 +1,12 @@
|
|||
Index: src/3rdparty/chromium/third_party/angle/third_party/vulkan-loader/src/loader/vk_loader_platform.h
|
||||
--- src/3rdparty/chromium/third_party/angle/third_party/vulkan-loader/src/loader/vk_loader_platform.h.orig
|
||||
+++ src/3rdparty/chromium/third_party/angle/third_party/vulkan-loader/src/loader/vk_loader_platform.h
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "vulkan/vk_platform.h"
|
||||
#include "vulkan/vk_sdk_platform.h"
|
||||
|
||||
-#if defined(__linux__) || defined(__APPLE__)
|
||||
+#if defined(__linux__) || defined(__APPLE__) || defined(__OpenBSD__)
|
||||
/* Linux-specific common code: */
|
||||
|
||||
// Headers:
|
|
@ -0,0 +1,12 @@
|
|||
Index: src/3rdparty/chromium/third_party/blink/renderer/bindings/scripts/bind_gen/callback_interface.py
|
||||
--- src/3rdparty/chromium/third_party/blink/renderer/bindings/scripts/bind_gen/callback_interface.py.orig
|
||||
+++ src/3rdparty/chromium/third_party/blink/renderer/bindings/scripts/bind_gen/callback_interface.py
|
||||
@@ -177,7 +177,7 @@ def generate_callback_interface(callback_interface_ide
|
||||
prop_install_mode=PropInstallMode.UNCONDITIONAL,
|
||||
trampoline_var_name=None,
|
||||
attribute_entries=[],
|
||||
- constant_entries=filter(is_unconditional, constant_entries),
|
||||
+ constant_entries=list(filter(is_unconditional, constant_entries)),
|
||||
exposed_construct_entries=[],
|
||||
operation_entries=[])
|
||||
(install_interface_template_decl, install_interface_template_def,
|
|
@ -0,0 +1,21 @@
|
|||
Index: src/3rdparty/chromium/third_party/blink/renderer/bindings/scripts/generate_origin_trial_features.py
|
||||
--- src/3rdparty/chromium/third_party/blink/renderer/bindings/scripts/generate_origin_trial_features.py.orig
|
||||
+++ src/3rdparty/chromium/third_party/blink/renderer/bindings/scripts/generate_origin_trial_features.py
|
||||
@@ -80,7 +80,7 @@ def read_idl_file(reader, idl_filename):
|
||||
assert len(interfaces) == 1, (
|
||||
"Expected one interface in file %r, found %d" %
|
||||
(idl_filename, len(interfaces)))
|
||||
- return (interfaces.values()[0], includes)
|
||||
+ return (list(interfaces.values())[0], includes)
|
||||
|
||||
|
||||
def interface_is_global(interface):
|
||||
@@ -281,7 +281,7 @@ def main():
|
||||
|
||||
info_provider = create_component_info_provider(
|
||||
os.path.normpath(options.info_dir), options.target_component)
|
||||
- idl_filenames = map(str.strip, open(options.idl_files_list))
|
||||
+ idl_filenames = list(map(str.strip, open(options.idl_files_list)))
|
||||
|
||||
generate_origin_trial_features(info_provider, options, idl_filenames)
|
||||
return 0
|
|
@ -0,0 +1,22 @@
|
|||
Index: src/3rdparty/chromium/third_party/blink/renderer/bindings/scripts/web_idl/callback_interface.py
|
||||
--- src/3rdparty/chromium/third_party/blink/renderer/bindings/scripts/web_idl/callback_interface.py.orig
|
||||
+++ src/3rdparty/chromium/third_party/blink/renderer/bindings/scripts/web_idl/callback_interface.py
|
||||
@@ -91,11 +91,13 @@ class CallbackInterface(UserDefinedType, WithExtendedA
|
||||
for operation_ir in ir.operations
|
||||
])
|
||||
self._operation_groups = tuple([
|
||||
- OperationGroup(
|
||||
- operation_group_ir,
|
||||
- filter(lambda x: x.identifier == operation_group_ir.identifier,
|
||||
- self._operations),
|
||||
- owner=self) for operation_group_ir in ir.operation_groups
|
||||
+ OperationGroup(operation_group_ir,
|
||||
+ list(
|
||||
+ filter(
|
||||
+ lambda x: x.identifier == operation_group_ir
|
||||
+ .identifier, self._operations)),
|
||||
+ owner=self)
|
||||
+ for operation_group_ir in ir.operation_groups
|
||||
])
|
||||
|
||||
@property
|
|
@ -0,0 +1,46 @@
|
|||
Index: src/3rdparty/chromium/third_party/blink/renderer/build/scripts/core/css/make_style_shorthands.py
|
||||
--- src/3rdparty/chromium/third_party/blink/renderer/build/scripts/core/css/make_style_shorthands.py.orig
|
||||
+++ src/3rdparty/chromium/third_party/blink/renderer/build/scripts/core/css/make_style_shorthands.py
|
||||
@@ -71,7 +71,7 @@ class Expansion(object):
|
||||
def enabled_longhands(self):
|
||||
include = lambda longhand: not longhand[
|
||||
'runtime_flag'] or self.is_enabled(longhand['runtime_flag'])
|
||||
- return filter(include, self._longhands)
|
||||
+ return list(filter(include, self._longhands))
|
||||
|
||||
@property
|
||||
def index(self):
|
||||
@@ -87,8 +87,9 @@ class Expansion(object):
|
||||
|
||||
def create_expansions(longhands):
|
||||
flags = collect_runtime_flags(longhands)
|
||||
- expansions = map(lambda mask: Expansion(longhands, flags, mask),
|
||||
- range(1 << len(flags)))
|
||||
+ expansions = list(
|
||||
+ map(lambda mask: Expansion(longhands, flags, mask),
|
||||
+ range(1 << len(flags))))
|
||||
assert len(expansions) > 0
|
||||
# We generate 2^N expansions for N flags, so enforce some limit.
|
||||
assert len(flags) <= 4, 'Too many runtime flags for a single shorthand'
|
||||
@@ -114,14 +115,14 @@ class StylePropertyShorthandWriter(json5_generator.Wri
|
||||
|
||||
self._longhand_dictionary = defaultdict(list)
|
||||
for property_ in json5_properties.shorthands:
|
||||
- property_['longhand_enum_keys'] = map(enum_key_for_css_property,
|
||||
- property_['longhands'])
|
||||
- property_['longhand_property_ids'] = map(id_for_css_property,
|
||||
- property_['longhands'])
|
||||
+ property_['longhand_enum_keys'] = list(
|
||||
+ map(enum_key_for_css_property, property_['longhands']))
|
||||
+ property_['longhand_property_ids'] = list(
|
||||
+ map(id_for_css_property, property_['longhands']))
|
||||
|
||||
- longhands = map(
|
||||
- lambda name: json5_properties.properties_by_name[name],
|
||||
- property_['longhands'])
|
||||
+ longhands = list(
|
||||
+ map(lambda name: json5_properties.properties_by_name[name],
|
||||
+ property_['longhands']))
|
||||
property_['expansions'] = create_expansions(longhands)
|
||||
for longhand_enum_key in property_['longhand_enum_keys']:
|
||||
self._longhand_dictionary[longhand_enum_key].append(property_)
|
|
@ -0,0 +1,14 @@
|
|||
Index: src/3rdparty/chromium/third_party/blink/renderer/build/scripts/core/css/properties/make_css_property_instances.py
|
||||
--- src/3rdparty/chromium/third_party/blink/renderer/build/scripts/core/css/properties/make_css_property_instances.py.orig
|
||||
+++ src/3rdparty/chromium/third_party/blink/renderer/build/scripts/core/css/properties/make_css_property_instances.py
|
||||
@@ -42,8 +42,8 @@ class CSSPropertyInstancesWriter(json5_generator.Write
|
||||
aliases = self._css_properties.aliases
|
||||
|
||||
# Lists of PropertyClassData.
|
||||
- self._property_classes_by_id = map(self.get_class, properties)
|
||||
- self._alias_classes_by_id = map(self.get_class, aliases)
|
||||
+ self._property_classes_by_id = list(map(self.get_class, properties))
|
||||
+ self._alias_classes_by_id = list(map(self.get_class, aliases))
|
||||
|
||||
# Sort by enum value.
|
||||
self._property_classes_by_id.sort(key=lambda t: t.enum_value)
|
|
@ -0,0 +1,21 @@
|
|||
Index: src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_factory.cc.tmpl
|
||||
--- src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_factory.cc.tmpl.orig
|
||||
+++ src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_factory.cc.tmpl
|
||||
@@ -26,7 +26,7 @@ using {{namespace}}FunctionMap = HashMap<AtomicString,
|
||||
|
||||
static {{namespace}}FunctionMap* g_{{namespace|lower}}_constructors = nullptr;
|
||||
|
||||
-{% for tag in tags|sort if not tag.noConstructor %}
|
||||
+{% for tag in tags|sort(attribute='name') if not tag.noConstructor %}
|
||||
static {{namespace}}Element* {{namespace}}{{tag.name.to_upper_camel_case()}}Constructor(
|
||||
Document& document, const CreateElementFlags flags) {
|
||||
{% if tag.runtimeEnabled %}
|
||||
@@ -52,7 +52,7 @@ static void Create{{namespace}}FunctionMap() {
|
||||
// Empty array initializer lists are illegal [dcl.init.aggr] and will not
|
||||
// compile in MSVC. If tags list is empty, add check to skip this.
|
||||
static const Create{{namespace}}FunctionMapData data[] = {
|
||||
- {% for tag in tags|sort if not tag.noConstructor %}
|
||||
+ {% for tag in tags|sort(attribute='name') if not tag.noConstructor %}
|
||||
{ {{cpp_namespace}}::{{tag|symbol}}Tag, {{namespace}}{{tag.name.to_upper_camel_case()}}Constructor },
|
||||
{% endfor %}
|
||||
};
|
|
@ -0,0 +1,21 @@
|
|||
Index: src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_type_helpers.cc.tmpl
|
||||
--- src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_type_helpers.cc.tmpl.orig
|
||||
+++ src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_type_helpers.cc.tmpl
|
||||
@@ -22,7 +22,7 @@ HTMLTypeMap CreateHTMLTypeMap() {
|
||||
const char* name;
|
||||
HTMLElementType type;
|
||||
} kTags[] = {
|
||||
- {% for tag in tags|sort %}
|
||||
+ {% for tag in tags|sort(attribute='name') %}
|
||||
{ "{{tag.name}}", HTMLElementType::k{{tag.js_interface}} },
|
||||
{% endfor %}
|
||||
};
|
||||
@@ -42,7 +42,7 @@ HTMLElementType htmlElementTypeForTag(const AtomicStri
|
||||
if (it == html_type_map.end())
|
||||
return HTMLElementType::kHTMLUnknownElement;
|
||||
|
||||
- {% for tag in tags|sort %}
|
||||
+ {% for tag in tags|sort(attribute='name') %}
|
||||
{% if tag.runtimeEnabled %}
|
||||
if (tagName == "{{tag.name}}") {
|
||||
if (!RuntimeEnabledFeatures::{{tag.runtimeEnabled}}Enabled(document->GetExecutionContext())) {
|
|
@ -0,0 +1,12 @@
|
|||
Index: src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_type_helpers.h.tmpl
|
||||
--- src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_type_helpers.h.tmpl.orig
|
||||
+++ src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/element_type_helpers.h.tmpl
|
||||
@@ -15,7 +15,7 @@ namespace blink {
|
||||
class Document;
|
||||
|
||||
// Type checking.
|
||||
-{% for tag in tags|sort if not tag.multipleTagNames and not tag.noTypeHelpers %}
|
||||
+{% for tag in tags|sort(attribute='name') if not tag.multipleTagNames and not tag.noTypeHelpers %}
|
||||
class {{tag.interface}};
|
||||
template <>
|
||||
inline bool IsElementOfType<const {{tag.interface}}>(const Node& node) {
|
|
@ -0,0 +1,18 @@
|
|||
Index: src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/make_qualified_names.h.tmpl
|
||||
--- src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/make_qualified_names.h.tmpl.orig
|
||||
+++ src/3rdparty/chromium/third_party/blink/renderer/build/scripts/templates/make_qualified_names.h.tmpl
|
||||
@@ -24,12 +24,12 @@ namespace {{cpp_namespace}} {
|
||||
{{symbol_export}}extern const WTF::AtomicString& {{namespace_prefix}}NamespaceURI;
|
||||
|
||||
// Tags
|
||||
-{% for tag in tags|sort %}
|
||||
+{% for tag in tags|sort(attribute='name') %}
|
||||
{{symbol_export}}extern const blink::{{namespace}}QualifiedName& {{tag|symbol}}Tag;
|
||||
{% endfor %}
|
||||
|
||||
// Attributes
|
||||
-{% for attr in attrs|sort %}
|
||||
+{% for attr in attrs|sort(attribute='name') %}
|
||||
{{symbol_export}}extern const blink::QualifiedName& {{attr|symbol}}Attr;
|
||||
{% endfor %}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
Index: src/3rdparty/chromium/third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl
|
||||
--- src/3rdparty/chromium/third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl.orig
|
||||
+++ src/3rdparty/chromium/third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl
|
||||
@@ -42,6 +42,7 @@ $code.=<<___;
|
||||
|
||||
chacha20_poly1305_constants:
|
||||
|
||||
+.rodata
|
||||
.align 64
|
||||
.chacha20_consts:
|
||||
.byte 'e','x','p','a','n','d',' ','3','2','-','b','y','t','e',' ','k'
|
||||
@@ -79,6 +80,7 @@ chacha20_poly1305_constants:
|
||||
.byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x00
|
||||
.byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00
|
||||
.byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
|
||||
+.previous
|
||||
___
|
||||
|
||||
my ($oup,$inp,$inl,$adp,$keyp,$itr1,$itr2)=("%rdi","%rsi","%rbx","%rcx","%r9","%rcx","%r8");
|
|
@ -0,0 +1,19 @@
|
|||
Index: src/3rdparty/chromium/third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl
|
||||
--- src/3rdparty/chromium/third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl.orig
|
||||
+++ src/3rdparty/chromium/third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl
|
||||
@@ -983,6 +983,7 @@ ___
|
||||
|
||||
$code.=<<___;
|
||||
.align 64
|
||||
+.rodata
|
||||
.Lbswap_mask:
|
||||
.byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
|
||||
.Lpoly:
|
||||
@@ -995,6 +996,7 @@ $code.=<<___;
|
||||
.byte 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
.asciz "AES-NI GCM module for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
.align 64
|
||||
+.previous
|
||||
___
|
||||
if ($win64) {
|
||||
$rec="%rcx";
|
|
@ -0,0 +1,19 @@
|
|||
Index: src/3rdparty/chromium/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl
|
||||
--- src/3rdparty/chromium/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl.orig
|
||||
+++ src/3rdparty/chromium/third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl
|
||||
@@ -333,6 +333,7 @@ $code .= <<____;
|
||||
.cfi_endproc
|
||||
.size gcm_ghash_ssse3,.-gcm_ghash_ssse3
|
||||
|
||||
+.rodata
|
||||
.align 16
|
||||
# .Lreverse_bytes is a permutation which, if applied with pshufb, reverses the
|
||||
# bytes in an XMM register.
|
||||
@@ -341,6 +342,7 @@ $code .= <<____;
|
||||
# .Llow4_mask is an XMM mask which selects the low four bits of each byte.
|
||||
.Llow4_mask:
|
||||
.quad 0x0f0f0f0f0f0f0f0f, 0x0f0f0f0f0f0f0f0f
|
||||
+.previous
|
||||
____
|
||||
|
||||
if ($win64) {
|
|
@ -0,0 +1,13 @@
|
|||
Index: src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/build_inspector_overlay.py
|
||||
--- src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/build_inspector_overlay.py.orig
|
||||
+++ src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/build_inspector_overlay.py
|
||||
@@ -45,7 +45,8 @@ def rollup(input_path, output_path, filename, max_size
|
||||
['--format', 'iife', '-n', 'InspectorOverlay'] + ['--input', target] +
|
||||
['--plugin', rollup_plugin],
|
||||
stdout=subprocess.PIPE,
|
||||
- stderr=subprocess.PIPE)
|
||||
+ stderr=subprocess.PIPE,
|
||||
+ text=True)
|
||||
out, error = rollup_process.communicate()
|
||||
if not out:
|
||||
raise Exception("rollup failed: " + error)
|
|
@ -0,0 +1,33 @@
|
|||
Index: src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/build_release_applications.py
|
||||
--- src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/build_release_applications.py.orig
|
||||
+++ src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/build_release_applications.py
|
||||
@@ -10,7 +10,7 @@ Builds applications in release mode:
|
||||
and the application loader into a single script.
|
||||
"""
|
||||
|
||||
-from cStringIO import StringIO
|
||||
+from io import StringIO
|
||||
from os import path
|
||||
from os.path import join
|
||||
import copy
|
||||
@@ -145,8 +145,7 @@ class ReleaseBuilder(object):
|
||||
resource_content = read_file(path.join(self.application_dir, resource_name))
|
||||
if not (resource_name.endswith('.html')
|
||||
or resource_name.endswith('md')):
|
||||
- resource_content += resource_source_url(resource_name).encode(
|
||||
- 'utf-8')
|
||||
+ resource_content += resource_source_url(resource_name)
|
||||
resource_content = resource_content.replace('\\', '\\\\')
|
||||
resource_content = resource_content.replace('\n', '\\n')
|
||||
resource_content = resource_content.replace('"', '\\"')
|
||||
@@ -173,7 +172,9 @@ class ReleaseBuilder(object):
|
||||
def _concatenate_application_script(self, output):
|
||||
output.write('Root.allDescriptors.push(...%s);' % self._release_module_descriptors())
|
||||
if self.descriptors.extends:
|
||||
- output.write('Root.applicationDescriptor.modules.push(...%s);' % json.dumps(self.descriptors.application.values()))
|
||||
+ output.write(
|
||||
+ 'Root.applicationDescriptor.modules.push(...%s);' %
|
||||
+ json.dumps(list(self.descriptors.application.values())))
|
||||
else:
|
||||
output.write('Root.applicationDescriptor = %s;' % self.descriptors.application_json())
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
Index: src/3rdparty/chromium/third_party/webrtc/modules/desktop_capture/linux/x_server_pixel_buffer.cc
|
||||
--- src/3rdparty/chromium/third_party/webrtc/modules/desktop_capture/linux/x_server_pixel_buffer.cc.orig
|
||||
+++ src/3rdparty/chromium/third_party/webrtc/modules/desktop_capture/linux/x_server_pixel_buffer.cc
|
||||
@@ -213,6 +213,13 @@ void XServerPixelBuffer::InitShm(const XWindowAttribut
|
||||
Visual* default_visual = attributes.visual;
|
||||
int default_depth = attributes.depth;
|
||||
|
||||
+#if defined(__OpenBSD__)
|
||||
+ // pledge(2)
|
||||
+ RTC_LOG(LS_WARNING) << "Unable to use shmget(2) while using pledge(2). "
|
||||
+ "Performance may be degraded.";
|
||||
+ return;
|
||||
+#endif
|
||||
+
|
||||
int major, minor;
|
||||
Bool have_pixmaps;
|
||||
if (!XShmQueryVersion(display_, &major, &minor, &have_pixmaps)) {
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_chacha_asm_chacha-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_chacha_asm_chacha-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_chacha_asm_chacha-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/chacha/asm/chacha-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/chacha/asm/chacha-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/chacha/asm/chacha-x86_64.pl
|
||||
+@@ -78,6 +78,7 @@ $code.=<<___;
|
||||
+
|
||||
+ .extern OPENSSL_ia32cap_P
|
||||
+
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lzero:
|
||||
+ .long 0,0,0,0
|
||||
+@@ -107,6 +108,7 @@ $code.=<<___;
|
||||
+ .Lsixteen:
|
||||
+ .long 16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16
|
||||
+ .asciz "ChaCha20 for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ sub AUTOLOAD() # thunk [simplified] 32-bit style perlasm
|
|
@ -0,0 +1,24 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_aes128gcmsiv-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_aes128gcmsiv-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_aes128gcmsiv-x86_64_pl
|
||||
@@ -0,0 +1,20 @@
|
||||
+Index: third_party/boringssl/src/crypto/cipher_extra/asm/aes128gcmsiv-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/cipher_extra/asm/aes128gcmsiv-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/cipher_extra/asm/aes128gcmsiv-x86_64.pl
|
||||
+@@ -32,7 +32,7 @@ open OUT,"| \"$^X\" \"$xlate\" $flavour \"$output\"";
|
||||
+ *STDOUT=*OUT;
|
||||
+
|
||||
+ $code.=<<___;
|
||||
+-.data
|
||||
++.rodata
|
||||
+
|
||||
+ .align 16
|
||||
+ one:
|
||||
+@@ -66,6 +66,7 @@ con3:
|
||||
+ .byte -1,-1,-1,-1,-1,-1,-1,-1,4,5,6,7,4,5,6,7
|
||||
+ and_mask:
|
||||
+ .long 0,0xffffffff, 0xffffffff, 0xffffffff
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ $code.=<<___;
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_chacha20_poly1305_x86_64_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_chacha20_poly1305_x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_chacha20_poly1305_x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl
|
||||
+@@ -42,6 +42,7 @@ $code.=<<___;
|
||||
+
|
||||
+ chacha20_poly1305_constants:
|
||||
+
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lchacha20_consts:
|
||||
+ .byte 'e','x','p','a','n','d',' ','3','2','-','b','y','t','e',' ','k'
|
||||
+@@ -79,6 +80,7 @@ chacha20_poly1305_constants:
|
||||
+ .byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x00
|
||||
+ .byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00
|
||||
+ .byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ my ($oup,$inp,$inl,$adp,$keyp,$itr1,$itr2,$adl)=("%rdi","%rsi","%rbx","%rcx","%r9","%rcx","%r8","%r8");
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_aesni-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_aesni-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_aesni-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesni-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesni-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesni-x86_64.pl
|
||||
+@@ -4727,6 +4727,7 @@ ___
|
||||
+ }
|
||||
+
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lbswap_mask:
|
||||
+ .byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
|
||||
+@@ -4749,6 +4750,7 @@ $code.=<<___;
|
||||
+
|
||||
+ .asciz "AES for Intel AES-NI, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
|
|
@ -0,0 +1,15 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_vpaes-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_vpaes-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_vpaes-x86_64_pl
|
||||
@@ -0,0 +1,11 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/aes/asm/vpaes-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/aes/asm/vpaes-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/aes/asm/vpaes-x86_64.pl
|
||||
+@@ -1288,6 +1288,7 @@ _vpaes_preheat:
|
||||
+ ## ##
|
||||
+ ########################################################
|
||||
+ .type _vpaes_consts,\@object
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ _vpaes_consts:
|
||||
+ .Lk_inv: # inv, inva
|
|
@ -0,0 +1,21 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_bn_asm_x86_64-mont5_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_bn_asm_x86_64-mont5_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_bn_asm_x86_64-mont5_pl
|
||||
@@ -0,0 +1,17 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/bn/asm/x86_64-mont5.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/bn/asm/x86_64-mont5.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/bn/asm/x86_64-mont5.pl
|
||||
+@@ -3544,11 +3544,13 @@ $code.=<<___;
|
||||
+ ___
|
||||
+ }
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Linc:
|
||||
+ .long 0,0, 1,1
|
||||
+ .long 2,2, 2,2
|
||||
+ .asciz "Montgomery Multiplication with scatter/gather for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_ec_asm_p256-x86_64-asm_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_ec_asm_p256-x86_64-asm_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_ec_asm_p256-x86_64-asm_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl
|
||||
+@@ -62,6 +62,7 @@ $code.=<<___;
|
||||
+ .extern OPENSSL_ia32cap_P
|
||||
+
|
||||
+ # The polynomial
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lpoly:
|
||||
+ .quad 0xffffffffffffffff, 0x00000000ffffffff, 0x0000000000000000, 0xffffffff00000001
|
||||
+@@ -80,6 +81,7 @@ $code.=<<___;
|
||||
+ .quad 0xf3b9cac2fc632551, 0xbce6faada7179e84, 0xffffffffffffffff, 0xffffffff00000000
|
||||
+ .LordK:
|
||||
+ .quad 0xccd1c8aaee00bc4f
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ {
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_aesni-gcm-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_aesni-gcm-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_aesni-gcm-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl
|
||||
+@@ -982,6 +982,7 @@ $code.=<<___;
|
||||
+ ___
|
||||
+
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lbswap_mask:
|
||||
+ .byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
|
||||
+@@ -995,6 +996,7 @@ $code.=<<___;
|
||||
+ .byte 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
+ .asciz "AES-NI GCM module for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+ if ($win64) {
|
||||
+ $rec="%rcx";
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-ssse3-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-ssse3-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-ssse3-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl
|
||||
+@@ -333,6 +333,7 @@ $code .= <<____;
|
||||
+ .cfi_endproc
|
||||
+ .size gcm_ghash_ssse3,.-gcm_ghash_ssse3
|
||||
+
|
||||
++.rodata
|
||||
+ .align 16
|
||||
+ # .Lreverse_bytes is a permutation which, if applied with pshufb, reverses the
|
||||
+ # bytes in an XMM register.
|
||||
+@@ -341,6 +342,7 @@ $code .= <<____;
|
||||
+ # .Llow4_mask is an XMM mask which selects the low four bits of each byte.
|
||||
+ .Llow4_mask:
|
||||
+ .quad 0x0f0f0f0f0f0f0f0f, 0x0f0f0f0f0f0f0f0f
|
||||
++.previous
|
||||
+ ____
|
||||
+
|
||||
+ if ($win64) {
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-x86_64.pl
|
||||
+@@ -1275,6 +1275,7 @@ ___
|
||||
+ }
|
||||
+
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lbswap_mask:
|
||||
+ .byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
|
||||
+@@ -1286,6 +1287,7 @@ $code.=<<___;
|
||||
+
|
||||
+ .asciz "GHASH for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ if ($win64) {
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha1-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha1-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha1-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha1-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha1-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha1-x86_64.pl
|
||||
+@@ -1815,6 +1815,7 @@ ___
|
||||
+ }
|
||||
+ }
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ K_XX_XX:
|
||||
+ .long 0x5a827999,0x5a827999,0x5a827999,0x5a827999 # K_00_19
|
||||
+@@ -1833,6 +1834,7 @@ ___
|
||||
+ $code.=<<___;
|
||||
+ .asciz "SHA1 block transform for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
|
|
@ -0,0 +1,35 @@
|
|||
Index: src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha512-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha512-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/chromium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha512-x86_64_pl
|
||||
@@ -0,0 +1,31 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha512-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha512-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha512-x86_64.pl
|
||||
+@@ -404,6 +404,7 @@ ___
|
||||
+
|
||||
+ if ($SZ==4) {
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .type $TABLE,\@object
|
||||
+ $TABLE:
|
||||
+@@ -447,9 +448,11 @@ $TABLE:
|
||||
+ .long 0xffffffff,0xffffffff,0x03020100,0x0b0a0908
|
||||
+ .long 0xffffffff,0xffffffff,0x03020100,0x0b0a0908
|
||||
+ .asciz "SHA256 block transform for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+ } else {
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .type $TABLE,\@object
|
||||
+ $TABLE:
|
||||
+@@ -537,6 +540,7 @@ $TABLE:
|
||||
+ .quad 0x0001020304050607,0x08090a0b0c0d0e0f
|
||||
+ .quad 0x0001020304050607,0x08090a0b0c0d0e0f
|
||||
+ .asciz "SHA512 block transform for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+ }
|
||||
+
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_chacha_asm_chacha-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_chacha_asm_chacha-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_chacha_asm_chacha-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/chacha/asm/chacha-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/chacha/asm/chacha-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/chacha/asm/chacha-x86_64.pl
|
||||
+@@ -78,6 +78,7 @@ $code.=<<___;
|
||||
+
|
||||
+ .extern OPENSSL_ia32cap_P
|
||||
+
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lzero:
|
||||
+ .long 0,0,0,0
|
||||
+@@ -107,6 +108,7 @@ $code.=<<___;
|
||||
+ .Lsixteen:
|
||||
+ .long 16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16
|
||||
+ .asciz "ChaCha20 for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ sub AUTOLOAD() # thunk [simplified] 32-bit style perlasm
|
|
@ -0,0 +1,24 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_aes128gcmsiv-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_aes128gcmsiv-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_aes128gcmsiv-x86_64_pl
|
||||
@@ -0,0 +1,20 @@
|
||||
+Index: third_party/boringssl/src/crypto/cipher_extra/asm/aes128gcmsiv-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/cipher_extra/asm/aes128gcmsiv-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/cipher_extra/asm/aes128gcmsiv-x86_64.pl
|
||||
+@@ -32,7 +32,7 @@ open OUT,"| \"$^X\" \"$xlate\" $flavour \"$output\"";
|
||||
+ *STDOUT=*OUT;
|
||||
+
|
||||
+ $code.=<<___;
|
||||
+-.data
|
||||
++.rodata
|
||||
+
|
||||
+ .align 16
|
||||
+ one:
|
||||
+@@ -66,6 +66,7 @@ con3:
|
||||
+ .byte -1,-1,-1,-1,-1,-1,-1,-1,4,5,6,7,4,5,6,7
|
||||
+ and_mask:
|
||||
+ .long 0,0xffffffff, 0xffffffff, 0xffffffff
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ $code.=<<___;
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_chacha20_poly1305_x86_64_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_chacha20_poly1305_x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_cipher_extra_asm_chacha20_poly1305_x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl
|
||||
+@@ -42,6 +42,7 @@ $code.=<<___;
|
||||
+
|
||||
+ chacha20_poly1305_constants:
|
||||
+
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lchacha20_consts:
|
||||
+ .byte 'e','x','p','a','n','d',' ','3','2','-','b','y','t','e',' ','k'
|
||||
+@@ -79,6 +80,7 @@ chacha20_poly1305_constants:
|
||||
+ .byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x00
|
||||
+ .byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00
|
||||
+ .byte 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ my ($oup,$inp,$inl,$adp,$keyp,$itr1,$itr2,$adl)=("%rdi","%rsi","%rbx","%rcx","%r9","%rcx","%r8","%r8");
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_aesni-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_aesni-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_aesni-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesni-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesni-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/aes/asm/aesni-x86_64.pl
|
||||
+@@ -4727,6 +4727,7 @@ ___
|
||||
+ }
|
||||
+
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lbswap_mask:
|
||||
+ .byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
|
||||
+@@ -4749,6 +4750,7 @@ $code.=<<___;
|
||||
+
|
||||
+ .asciz "AES for Intel AES-NI, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
|
|
@ -0,0 +1,15 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_vpaes-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_vpaes-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_aes_asm_vpaes-x86_64_pl
|
||||
@@ -0,0 +1,11 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/aes/asm/vpaes-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/aes/asm/vpaes-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/aes/asm/vpaes-x86_64.pl
|
||||
+@@ -1288,6 +1288,7 @@ _vpaes_preheat:
|
||||
+ ## ##
|
||||
+ ########################################################
|
||||
+ .type _vpaes_consts,\@object
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ _vpaes_consts:
|
||||
+ .Lk_inv: # inv, inva
|
|
@ -0,0 +1,21 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_bn_asm_x86_64-mont5_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_bn_asm_x86_64-mont5_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_bn_asm_x86_64-mont5_pl
|
||||
@@ -0,0 +1,17 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/bn/asm/x86_64-mont5.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/bn/asm/x86_64-mont5.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/bn/asm/x86_64-mont5.pl
|
||||
+@@ -3544,11 +3544,13 @@ $code.=<<___;
|
||||
+ ___
|
||||
+ }
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Linc:
|
||||
+ .long 0,0, 1,1
|
||||
+ .long 2,2, 2,2
|
||||
+ .asciz "Montgomery Multiplication with scatter/gather for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_ec_asm_p256-x86_64-asm_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_ec_asm_p256-x86_64-asm_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_ec_asm_p256-x86_64-asm_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl
|
||||
+@@ -62,6 +62,7 @@ $code.=<<___;
|
||||
+ .extern OPENSSL_ia32cap_P
|
||||
+
|
||||
+ # The polynomial
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lpoly:
|
||||
+ .quad 0xffffffffffffffff, 0x00000000ffffffff, 0x0000000000000000, 0xffffffff00000001
|
||||
+@@ -80,6 +81,7 @@ $code.=<<___;
|
||||
+ .quad 0xf3b9cac2fc632551, 0xbce6faada7179e84, 0xffffffffffffffff, 0xffffffff00000000
|
||||
+ .LordK:
|
||||
+ .quad 0xccd1c8aaee00bc4f
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ {
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_aesni-gcm-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_aesni-gcm-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_aesni-gcm-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl
|
||||
+@@ -982,6 +982,7 @@ $code.=<<___;
|
||||
+ ___
|
||||
+
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lbswap_mask:
|
||||
+ .byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
|
||||
+@@ -995,6 +996,7 @@ $code.=<<___;
|
||||
+ .byte 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
+ .asciz "AES-NI GCM module for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+ if ($win64) {
|
||||
+ $rec="%rcx";
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-ssse3-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-ssse3-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-ssse3-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-ssse3-x86_64.pl
|
||||
+@@ -333,6 +333,7 @@ $code .= <<____;
|
||||
+ .cfi_endproc
|
||||
+ .size gcm_ghash_ssse3,.-gcm_ghash_ssse3
|
||||
+
|
||||
++.rodata
|
||||
+ .align 16
|
||||
+ # .Lreverse_bytes is a permutation which, if applied with pshufb, reverses the
|
||||
+ # bytes in an XMM register.
|
||||
+@@ -341,6 +342,7 @@ $code .= <<____;
|
||||
+ # .Llow4_mask is an XMM mask which selects the low four bits of each byte.
|
||||
+ .Llow4_mask:
|
||||
+ .quad 0x0f0f0f0f0f0f0f0f, 0x0f0f0f0f0f0f0f0f
|
||||
++.previous
|
||||
+ ____
|
||||
+
|
||||
+ if ($win64) {
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_modes_asm_ghash-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/modes/asm/ghash-x86_64.pl
|
||||
+@@ -1275,6 +1275,7 @@ ___
|
||||
+ }
|
||||
+
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .Lbswap_mask:
|
||||
+ .byte 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0
|
||||
+@@ -1286,6 +1287,7 @@ $code.=<<___;
|
||||
+
|
||||
+ .asciz "GHASH for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ if ($win64) {
|
|
@ -0,0 +1,23 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha1-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha1-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha1-x86_64_pl
|
||||
@@ -0,0 +1,19 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha1-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha1-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha1-x86_64.pl
|
||||
+@@ -1815,6 +1815,7 @@ ___
|
||||
+ }
|
||||
+ }
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ K_XX_XX:
|
||||
+ .long 0x5a827999,0x5a827999,0x5a827999,0x5a827999 # K_00_19
|
||||
+@@ -1833,6 +1834,7 @@ ___
|
||||
+ $code.=<<___;
|
||||
+ .asciz "SHA1 block transform for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
+ .align 64
|
||||
++.previous
|
||||
+ ___
|
||||
+
|
||||
+ # EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
|
|
@ -0,0 +1,35 @@
|
|||
Index: src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha512-x86_64_pl
|
||||
--- src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha512-x86_64_pl.orig
|
||||
+++ src/3rdparty/chromium/www/iridium/patches/patch-third_party_boringssl_src_crypto_fipsmodule_sha_asm_sha512-x86_64_pl
|
||||
@@ -0,0 +1,31 @@
|
||||
+Index: third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha512-x86_64.pl
|
||||
+--- third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha512-x86_64.pl.orig
|
||||
++++ third_party/boringssl/src/crypto/fipsmodule/sha/asm/sha512-x86_64.pl
|
||||
+@@ -404,6 +404,7 @@ ___
|
||||
+
|
||||
+ if ($SZ==4) {
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .type $TABLE,\@object
|
||||
+ $TABLE:
|
||||
+@@ -447,9 +448,11 @@ $TABLE:
|
||||
+ .long 0xffffffff,0xffffffff,0x03020100,0x0b0a0908
|
||||
+ .long 0xffffffff,0xffffffff,0x03020100,0x0b0a0908
|
||||
+ .asciz "SHA256 block transform for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+ } else {
|
||||
+ $code.=<<___;
|
||||
++.rodata
|
||||
+ .align 64
|
||||
+ .type $TABLE,\@object
|
||||
+ $TABLE:
|
||||
+@@ -537,6 +540,7 @@ $TABLE:
|
||||
+ .quad 0x0001020304050607,0x08090a0b0c0d0e0f
|
||||
+ .quad 0x0001020304050607,0x08090a0b0c0d0e0f
|
||||
+ .asciz "SHA512 block transform for x86_64, CRYPTOGAMS by <appro\@openssl.org>"
|
||||
++.previous
|
||||
+ ___
|
||||
+ }
|
||||
+
|
Loading…
Add table
Add a link
Reference in a new issue