forked from GregorR/musl-gcc-patches
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathx86.diff
55 lines (47 loc) · 1.83 KB
/
x86.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# HG changeset patch
# Parent 36af6268b2f02afd6e00a03c100dd0a8d9e3dbe6
Support for i386-linux-musl and x86_64-linux-musl.
diff -r 36af6268b2f0 gcc/config/i386/linux.h
--- a/gcc/config/i386/linux.h Sun Jul 26 15:46:21 2015 -0400
+++ b/gcc/config/i386/linux.h Sun Jul 26 15:46:23 2015 -0400
@@ -21,3 +21,4 @@
#define GNU_USER_LINK_EMULATION "elf_i386"
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1"
diff -r 36af6268b2f0 gcc/config/i386/linux64.h
--- a/gcc/config/i386/linux64.h Sun Jul 26 15:46:21 2015 -0400
+++ b/gcc/config/i386/linux64.h Sun Jul 26 15:46:23 2015 -0400
@@ -30,3 +30,7 @@
#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
#define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
+
+#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-i386.so.1"
+#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-x86_64.so.1"
+#define MUSL_DYNAMIC_LINKERX32 "/lib/ld-musl-x32.so.1"
diff -r 36af6268b2f0 libitm/config/linux/x86/tls.h
--- a/libitm/config/linux/x86/tls.h Sun Jul 26 15:46:21 2015 -0400
+++ b/libitm/config/linux/x86/tls.h Sun Jul 26 15:46:23 2015 -0400
@@ -25,16 +25,19 @@
#ifndef LIBITM_X86_TLS_H
#define LIBITM_X86_TLS_H 1
-#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 10)
+#if defined(__GLIBC_PREREQ)
+#if __GLIBC_PREREQ(2, 10)
/* Use slots in the TCB head rather than __thread lookups.
GLIBC has reserved words 10 through 13 for TM. */
#define HAVE_ARCH_GTM_THREAD 1
#define HAVE_ARCH_GTM_THREAD_DISP 1
#endif
+#endif
#include "config/generic/tls.h"
-#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 10)
+#if defined(__GLIBC_PREREQ)
+#if __GLIBC_PREREQ(2, 10)
namespace GTM HIDDEN {
#ifdef __x86_64__
@@ -101,5 +104,6 @@
} // namespace GTM
#endif /* >= GLIBC 2.10 */
+#endif
#endif // LIBITM_X86_TLS_H