WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Re: Debian: Move /lib/tls out of the way makes a lot of

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Re: Debian: Move /lib/tls out of the way makes a lot of binaries to break
From: Ernst Bachmann <e.bachmann@xxxxxxxx>
Date: Sun, 18 Sep 2005 13:14:54 +0200
Delivery-date: Sun, 18 Sep 2005 11:12:44 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <dgjhbr$lkm$1@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <dg7meg$8im$1@xxxxxxxxxxxxx> <6.1.2.0.2.20050917192446.072e9eb0@xxxxxxxxxxxxxxx> <dgjhbr$lkm$1@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.8.1
On Sunday 18 September 2005 12:59, Markus Schuster wrote:

>
> Would that meen one has to recompile all packages with
> -DNO_TLS_DIRECT_SEG_REFS or should it be enough to recompile libc6 with
> that parameter?
> I really hope you are able to solve that puzzle. I got the sources for
> libc6 but it really doesn't look like I expected it to do, so I pushed
> that on my ToDo list :)

-DNO_TLS_DIRECT_SEG_REFS defines a preprocessor macro, so unless the 
application/library is using that macro to switch between different ASM/Code 
blocks, it won't do anything.

IOW, that macro most likely only applies to glibc.

Starting with gcc-3.4 there's also an gcc switch to prevent the compiler from 
generating non-xen compatible code on its own:
"-mno-tls-direct-seg-refs"

So: recompile your glibc. check if some apps still make xen complain 
about /lib/tls, those are either statically linked against the previous glibc 
or contain incompatible memory acesses themself, generated by inline asm or 
gcc optimizations.

recompiling those apps with CFLAGS=-mno-tls-direct-seg-refs shoud fix it.

/Ernst

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users