blob: 50c28cd6675d38af1dd0dafcbeee64c95544f5b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-Source_WTF_wtf_InlineASM.h,v 1.2 2022/03/28 14:38:50 tnn Exp $
* Add NetBSD support
* Add Solaris/SunOS support
--- Source/WTF/wtf/InlineASM.h.orig 2020-03-04 17:16:37.000000000 +0000
+++ Source/WTF/wtf/InlineASM.h
@@ -40,7 +40,7 @@
#define THUMB_FUNC_PARAM(name)
#endif
-#if (OS(LINUX) || OS(FREEBSD)) && CPU(X86_64)
+#if (OS(LINUX) || OS(FREEBSD) || OS(NETBSD) || OS(SOLARIS)) && CPU(X86_64) || (OS(SOLARIS) && CPU(X86))
#define GLOBAL_REFERENCE(name) #name "@plt"
#elif CPU(X86) && COMPILER(MINGW)
#define GLOBAL_REFERENCE(name) "@" #name "@4"
@@ -84,6 +84,7 @@
|| OS(OPENBSD) \
|| OS(HURD) \
|| OS(NETBSD) \
+ || OS(SOLARIS) \
|| COMPILER(MINGW)
// GNU as-compatible syntax.
#define LOCAL_LABEL_STRING(name) ".L" #name
|