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-devel

RE: [Xen-devel] Gentoo/glibc-2.3.5 tls patch: Need HELP

To: <bgb@xxxxxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Gentoo/glibc-2.3.5 tls patch: Need HELP
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Wed, 27 Jul 2005 23:34:27 +0100
Delivery-date: Wed, 27 Jul 2005 22:32:58 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWS+Vc/XQmlSzWCR3uWHBCxYAzK4QAAdxEA
Thread-topic: [Xen-devel] Gentoo/glibc-2.3.5 tls patch: Need HELP
It looks like your glibc has already been patched. Just compile having
defined
NO_TLS_DIRECT_SEG_REFS

Ian

 

> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of B.G. Bruce
> Sent: 27 July 2005 23:21
> To: xen-devel
> Subject: [Xen-devel] Gentoo/glibc-2.3.5 tls patch: Need HELP
> 
> I'm trying to patch gentoo/glibc-2.3.5 with the tls patch 
> from the wiki.
> 
> 
> What I have so far (for sysdeps/unix/sysv/linux/i386/sysdeps.h):
> 0:SETUP_PIC_REG (dx);                                         
>          \
>   addl $_GLOBAL_OFFSET_TABLE_, %edx;                          
>          \
>   movl %gs:0, %ecx;                                           
>          \
>   addl SYSCALL_ERROR_ERRNO@GOTNTPOFF(%edx), %ecx;             
>          \
>   xorl %edx, %edx;                                            
>          \
>   subl %eax, %edx;                                            
>          \
> 
> --------------------------------------------------------------
> -------------
> 
> It's the last lines of the original patch  that I don't know 
> how to apply:
> -  movl %edx, %gs:0(%ecx);                                    
>          \
> +  movl %edx, (%ecx);                                         
>          \
> 
> They belong somewhere in the following snippet:
> 
>   SYSCALL_ERROR_HANDLER_TLS_STORE (%edx, %ecx);               
>          \
>   orl $-1, %eax;                                              
>          \
>   jmp L(pseudo_end);
> #   ifndef NO_TLS_DIRECT_SEG_REFS
> #    define SYSCALL_ERROR_HANDLER_TLS_STORE(src, destoff)     
>          \
>   movl src, %gs:(destoff)
> #   else
> #    define SYSCALL_ERROR_HANDLER_TLS_STORE(src, destoff)     
>          \
>   addl %gs:0, destoff;                                        
>          \
>   movl src, (destoff)
> #   endif
> 
> Any help is greatly appreciated.
> 
> Brian.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
> 

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