Blame SOURCES/fix-page-size-constant.patch

6cad00
diff -ruN compiler-rt-14.0.0.src.orig/lib/cfi/cfi.cpp compiler-rt-14.0.0.src/lib/cfi/cfi.cpp
6cad00
--- a/compiler-rt-14.0.0.src.orig/lib/cfi/cfi.cpp	2022-03-14 10:44:55.000000000 +0100
6cad00
+++ b/compiler-rt-14.0.0.src/lib/cfi/cfi.cpp	2022-05-25 17:03:51.114415534 +0200
6cad00
@@ -51,7 +51,11 @@
6cad00
 
6cad00
 namespace __cfi {
6cad00
 
6cad00
+#if defined(__aarch64__) || defined(__powerpc64__)
6cad00
+#define kCfiShadowLimitsStorageSize 65536 // 1 page
6cad00
+#else
6cad00
 #define kCfiShadowLimitsStorageSize 4096 // 1 page
6cad00
+#endif
6cad00
 // Lets hope that the data segment is mapped with 4K pages.
6cad00
 // The pointer to the cfi shadow region is stored at the start of this page.
6cad00
 // The rest of the page is unused and re-mapped read-only.