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

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