summaryrefslogtreecommitdiff
path: root/www/node24/files
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--www/node24/files/patch-armv712
-rw-r--r--www/node24/files/patch-common.gypi20
-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
4 files changed, 35 insertions, 20 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-common.gypi b/www/node24/files/patch-common.gypi
deleted file mode 100644
index 7a6628dd498e..000000000000
--- a/www/node24/files/patch-common.gypi
+++ /dev/null
@@ -1,20 +0,0 @@
---- common.gypi.orig 2025-05-06 12:36:27 UTC
-+++ common.gypi
-@@ -529,7 +529,7 @@
- 'ldflags': [ '-m64' ],
- }],
- [ 'host_arch=="ppc64" and OS not in "aix os400"', {
-- 'cflags': [ '-m64', '-mminimal-toc' ],
-+ 'cflags': [ '-m64' ],
- 'ldflags': [ '-m64' ],
- }],
- [ 'host_arch=="s390x" and OS=="linux"', {
-@@ -549,7 +549,7 @@
- 'ldflags': [ '-m64' ],
- }],
- [ 'target_arch=="ppc64" and OS not in "aix os400"', {
-- 'cflags': [ '-m64', '-mminimal-toc' ],
-+ 'cflags': [ '-m64' ],
- 'ldflags': [ '-m64' ],
- }],
- [ 'target_arch=="s390x" and OS=="linux"', {
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};