[BACK]Return to tls.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / tls

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/tls/tls.c between version 1.7 and 1.7.4.1

version 1.7, 2013/08/19 22:14:37 version 1.7.4.1, 2014/12/31 06:51:08
Line 155  __libc_static_tls_setup(void)
Line 155  __libc_static_tls_setup(void)
         struct tls_tcb *tcb;          struct tls_tcb *tcb;
   
         if (&rtld_DYNAMIC != NULL) {          if (&rtld_DYNAMIC != NULL) {
 #ifdef __powerpc__  
                 /*  
                  * Old powerpc crt0's are going to overwrite r2 so we need to  
                  * restore it but only do so if the saved value isn't NULL (if  
                  * it is NULL, ld.elf_so doesn't have the matching change).  
                  */  
                 if ((tcb = _lwp_getprivate()) != NULL)  
                         __lwp_settcb(tcb);  
 #endif  
                 return;                  return;
         }          }
   

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.7.4.1

CVSweb <webmaster@jp.NetBSD.org>