From 7b4888459d773be7257a72debe10b0e84f4c80f3 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Mon, 15 Oct 2007 23:33:36 +0000 Subject: Add tls warning update to 2.6.18 svn path=/patches/; revision=57 --- trunk/2.6.18/00000_README | 3 +++ trunk/2.6.18/50009_gentooify-tls-warning.patch | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 trunk/2.6.18/50009_gentooify-tls-warning.patch diff --git a/trunk/2.6.18/00000_README b/trunk/2.6.18/00000_README index 756a4ca..96c5473 100644 --- a/trunk/2.6.18/00000_README +++ b/trunk/2.6.18/00000_README @@ -215,3 +215,6 @@ Patches 50002_always-enable-xen-genapic.patch Compile fix for non-SMP (UP) kernels. Since UP support is broken in upstream Xen I'm not sure if I trust it or not. :-P + +50009_gentooify-tls-warning.patch + Change tls warning instructions to apply directly to Gentoo. diff --git a/trunk/2.6.18/50009_gentooify-tls-warning.patch b/trunk/2.6.18/50009_gentooify-tls-warning.patch new file mode 100644 index 0000000..3c3db12 --- /dev/null +++ b/trunk/2.6.18/50009_gentooify-tls-warning.patch @@ -0,0 +1,16 @@ +--- linux-2.6.20-xen-r6.orig/arch/i386/kernel/fixup.c 2007-10-15 16:07:58.000000000 -0700 ++++ linux-2.6.20-xen-r6/arch/i386/kernel/fixup.c 2007-10-15 16:15:01.000000000 -0700 +@@ -60,10 +60,9 @@ + DP("** WARNING: Currently emulating unsupported memory accesses **"); + DP("** in /lib/tls glibc libraries. The emulation is **"); + DP("** slow. To ensure full performance you should **"); +- DP("** install a 'xen-friendly' (nosegneg) version of **"); +- DP("** the library, or disable tls support by executing **"); +- DP("** the following as root: **"); +- DP("** mv /lib/tls /lib/tls.disabled **"); ++ DP("** add -mno-tls-direct-seg-refs to your CFLAGS and **"); ++ DP("** re-emerge glibc and any staticly linked programs **"); ++ DP("** or emerge -e world to catch everything. **"); + DP("** Offending process: %-38.38s **", info); + DP("***************************************************************"); + DP("***************************************************************"); -- cgit v1.2.3-65-gdbad