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

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