diff options
Diffstat (limited to '')
-rw-r--r-- | www/node24/files/patch-armv7 | 12 | ||||
-rw-r--r-- | www/node24/files/patch-deps_v8_include_v8config.h | 11 | ||||
-rw-r--r-- | www/node24/files/patch-deps_v8_src_base_platform_platform-posix.cc | 12 |
3 files changed, 35 insertions, 0 deletions
diff --git a/www/node24/files/patch-armv7 b/www/node24/files/patch-armv7 new file mode 100644 index 000000000000..189f9b3780d8 --- /dev/null +++ b/www/node24/files/patch-armv7 @@ -0,0 +1,12 @@ +--- tools/v8_gypfiles/v8.gyp.orig 2025-07-17 21:44:08 UTC ++++ tools/v8_gypfiles/v8.gyp +@@ -1314,9 +1314,6 @@ + # to implement atomic memory access. + # Clang needs it for some atomic operations (https://clang.llvm.org/docs/Toolchain.html#atomics-library). + ['(OS=="linux" and clang==1) or (v8_current_cpu in ["mips64", "mips64el", "arm", "riscv64", "loong64"])', { +- 'link_settings': { +- 'libraries': ['-latomic', ], +- }, + }], + ], + }, # v8_base_without_compiler 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}; |