Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154480686
D21588.id63937.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D21588.id63937.diff
View Options
Index: www/node/Makefile
===================================================================
--- www/node/Makefile
+++ www/node/Makefile
@@ -74,6 +74,12 @@
.include <bsd.port.options.mk>
+.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-common.gypi
+.endif
+
+
+
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085
BROKEN_SSL+= base
.endif
Index: www/node/files/extra-patch-common.gypi
===================================================================
--- /dev/null
+++ www/node/files/extra-patch-common.gypi
@@ -0,0 +1,11 @@
+--- common.gypi.orig 2019-09-09 16:35:03 UTC
++++ common.gypi
+@@ -390,7 +390,7 @@
+ 'ldflags': [ '-m32' ],
+ }],
+ [ 'target_arch=="ppc64" and OS!="aix"', {
+- 'cflags': [ '-m64', '-mminimal-toc' ],
++ 'cflags': [ '-m64' ],
+ 'ldflags': [ '-m64' ],
+ }],
+ [ 'target_arch=="s390x"', {
Index: www/node/files/patch-deps_v8_src_codegen_ppc_constants-ppc.h
===================================================================
--- /dev/null
+++ www/node/files/patch-deps_v8_src_codegen_ppc_constants-ppc.h
@@ -0,0 +1,20 @@
+--- deps/v8/src/codegen/ppc/constants-ppc.h.orig 2019-09-09 16:27:17 UTC
++++ deps/v8/src/codegen/ppc/constants-ppc.h
+@@ -34,7 +34,7 @@
+ #define ABI_PASSES_HANDLES_IN_REGS 0
+ #endif
+
+-#if !V8_HOST_ARCH_PPC || !V8_TARGET_ARCH_PPC64 || V8_TARGET_LITTLE_ENDIAN || \
++#if !V8_HOST_ARCH_PPC || !V8_TARGET_ARCH_PPC64 || \
+ (defined(_CALL_ELF) && _CALL_ELF == 2)
+ #define ABI_RETURNS_OBJECT_PAIRS_IN_REGS 1
+ #else
+@@ -43,7 +43,7 @@
+
+ #if !V8_HOST_ARCH_PPC || \
+ (V8_TARGET_ARCH_PPC64 && \
+- (V8_TARGET_LITTLE_ENDIAN || (defined(_CALL_ELF) && _CALL_ELF == 2)))
++ (defined(_CALL_ELF) && _CALL_ELF == 2))
+ #define ABI_CALL_VIA_IP 1
+ #else
+ #define ABI_CALL_VIA_IP 0
Index: www/node/files/patch-deps_v8_src_execution_simulator.h
===================================================================
--- www/node/files/patch-deps_v8_src_execution_simulator.h
+++ www/node/files/patch-deps_v8_src_execution_simulator.h
@@ -1,11 +1,11 @@
---- deps/v8/src/execution/simulator.h.orig 2019-04-26 17:47:06 UTC
+--- deps/v8/src/execution/simulator.h.orig 2019-09-04 15:36:23 UTC
+++ deps/v8/src/execution/simulator.h
@@ -124,7 +124,7 @@ class GeneratedCode {
DISABLE_CFI_ICALL Return Call(Args... args) {
// When running without a simulator we call the entry directly.
-#if V8_OS_AIX
-+#if V8_TARGET_ARCH_PPC_BE
++#if V8_OS_AIX || (V8_TARGET_ARCH_PPC_BE && (!defined(_CALL_ELF) || _CALL_ELF == 1))
// AIX ABI requires function descriptors (FD). Artificially create a pseudo
// FD to ensure correct dispatch to generated code. The 'volatile'
// declaration is required to avoid the compiler from not observing the
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 5:29 PM (17 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32367635
Default Alt Text
D21588.id63937.diff (2 KB)
Attached To
Mode
D21588: [PowerPC64] fix www/node build and runtime when using ELFv2 ABI
Attached
Detach File
Event Timeline
Log In to Comment