aboutsummaryrefslogtreecommitdiff
path: root/www/node24/files
diff options
context:
space:
mode:
Diffstat (limited to 'www/node24/files')
-rw-r--r--www/node24/files/patch-deps_v8_include_v8config.h11
-rw-r--r--www/node24/files/patch-deps_v8_src_base_platform_platform-posix.cc12
2 files changed, 23 insertions, 0 deletions
diff --git a/www/node24/files/patch-deps_v8_include_v8config.h b/www/node24/files/patch-deps_v8_include_v8config.h
new file mode 100644
index 000000000000..2fe13159fc15
--- /dev/null
+++ b/www/node24/files/patch-deps_v8_include_v8config.h
@@ -0,0 +1,11 @@
+--- deps/v8/include/v8config.h.orig 2025-07-15 17:11:17 UTC
++++ deps/v8/include/v8config.h
+@@ -976,7 +976,7 @@ V8 shared library set USING_V8_SHARED.
+ #define V8_TARGET_LITTLE_ENDIAN 1
+ #endif
+ #elif V8_TARGET_ARCH_PPC64
+-#if V8_OS_AIX
++#if defined(__BIG_ENDIAN__) || defined(V8_OS_AIX)
+ #define V8_TARGET_BIG_ENDIAN 1
+ #else
+ #define V8_TARGET_LITTLE_ENDIAN 1
diff --git a/www/node24/files/patch-deps_v8_src_base_platform_platform-posix.cc b/www/node24/files/patch-deps_v8_src_base_platform_platform-posix.cc
new file mode 100644
index 000000000000..3a6bc2e94249
--- /dev/null
+++ b/www/node24/files/patch-deps_v8_src_base_platform_platform-posix.cc
@@ -0,0 +1,12 @@
+--- deps/v8/src/base/platform/platform-posix.cc.orig 2025-07-15 17:11:17 UTC
++++ deps/v8/src/base/platform/platform-posix.cc
+@@ -360,6 +360,9 @@ void* OS::GetRandomMmapAddr() {
+ raw_addr &= uint64_t{0x3FFFF000};
+ // Use extra address space to isolate the mmap regions.
+ raw_addr += uint64_t{0x400000000000};
++#elif V8_TARGET_BIG_ENDIAN
++ // Big-endian Linux: 42 bits of virtual addressing.
++ raw_addr &= uint64_t{0x03FFFFFFF000};
+ #else
+ // Little-endian Linux: 46 bits of virtual addressing.
+ raw_addr &= uint64_t{0x3FFFFFFF0000};