File tls-no-direct.diff of Package cross-m68k-gcc7
21
1
For i?86 negative offsets to %fs segment accesses cause a hypervisor
2
trap for Xen. Avoid this by making accesses indirect.
3
4
??? Note that similar to the behavior on SLE11 this only affects
5
the compiler built on %ix86, not that on x86_64, even with -m32.
6
7
Index: gcc/config/i386/linux.h
8
===================================================================
9
--- gcc/config/i386/linux.h.orig 2015-12-17 15:07:37.785650062 +0100
10
+++ gcc/config/i386/linux.h 2015-12-17 15:08:06.393983290 +0100
11
12
13
#undef MUSL_DYNAMIC_LINKER
14
#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-i386.so.1"
15
+
16
+/* This slows down Xen, so take a very small general performance hit
17
+ for not accessing the %fs segment with negative offsets by making
18
+ GCC not emit direct accesses to %fs at all. */
19
+#undef TARGET_TLS_DIRECT_SEG_REFS_DEFAULT
20
+#define TARGET_TLS_DIRECT_SEG_REFS_DEFAULT 0
21