Author: jim
Date: 2005-09-14 20:26:08 -0600 (Wed, 14 Sep 2005)
New Revision: 1120

Added:
   trunk/glibc/glibc-20050905-sparc64_tls-1.patch
   trunk/glibc/glibc-20050912-libgcc_eh-1.patch
   trunk/glibc/glibc-20050912-sparc64_tls-1.patch
Modified:
   trunk/
Log:
 [EMAIL PROTECTED]:  jim | 2005-09-14 19:24:47 -0700
 Added: glibc-20050905-sparc64_tls-1.patch glibc-20050912-libgcc_eh-1.patch 
glibc-20050912-sparc64_tls-1.patch



Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1250
   + cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1251

Added: trunk/glibc/glibc-20050905-sparc64_tls-1.patch
===================================================================
--- trunk/glibc/glibc-20050905-sparc64_tls-1.patch      2005-09-15 02:25:33 UTC 
(rev 1119)
+++ trunk/glibc/glibc-20050905-sparc64_tls-1.patch      2005-09-15 02:26:08 UTC 
(rev 1120)
@@ -0,0 +1,85 @@
+Submitted By: Jim Gifford (patches at jg555 dot com)
+Date: 2005-09-14
+Initial Package Version: 2.3.5
+Origin: Dave Millier
+Upstream Status: Applied
+Description: Adds Support for TLS in Sparc64
+ 
+diff -Naur glibc-20050905.orig/elf/tls-macros.h glibc-20050905/elf/tls-macros.h
+--- glibc-20050905.orig/elf/tls-macros.h       2005-06-17 22:57:47.000000000 
+0000
++++ glibc-20050905/elf/tls-macros.h    2005-09-14 23:11:56.000000000 +0000
+@@ -509,6 +509,74 @@
+           "o5", "o7", "cc");                                                \
+      __o0; })
+ 
++#elif defined __sparc__ && defined __arch64__
++
++# define TLS_LE(x) \
++  ({ int *__l;                                                                
      \
++     asm ("sethi %%tle_hix22(" #x "), %0" : "=r" (__l));                    \
++     asm ("xor %1, %%tle_lox10(" #x "), %0" : "=r" (__l) : "r" (__l));        
      \
++     asm ("add %%g7, %1, %0" : "=r" (__l) : "r" (__l));                       
      \
++     __l; })
++
++# ifdef __PIC__
++#  define TLS_LOAD_PIC \
++  ({ long pc, got;                                                          \
++     asm ("sethi %%hi(_GLOBAL_OFFSET_TABLE_-4), %1\n\t"                       
      \
++        "rd %%pc, %0\n\t"                                                   \
++        "add %1, %%lo(_GLOBAL_OFFSET_TABLE_+4), %1\n\t"                     \
++        "add %1, %0, %1\n\t"                                                \
++        : "=r" (pc), "=r" (got));                                           \
++     got; })
++# else
++#  define TLS_LOAD_PIC \
++   ({ long got;                                                               
      \
++      asm (".hidden _GLOBAL_OFFSET_TABLE_\n\t"                                
      \
++         "sethi %%hi(_GLOBAL_OFFSET_TABLE_), %0\n\t"                        \
++         "or %0, %%lo(_GLOBAL_OFFSET_TABLE_), %0"                           \
++         : "=r" (got));                                                     \
++      got; })
++# endif
++
++# define TLS_IE(x) \
++  ({ int *__l;                                                                
      \
++     asm ("sethi %%tie_hi22(" #x "), %0" : "=r" (__l));                       
      \
++     asm ("add %1, %%tie_lo10(" #x "), %0" : "=r" (__l) : "r" (__l));       \
++     asm ("ldx [%1 + %2], %0, %%tie_ldx(" #x ")"                            \
++        : "=r" (__l) : "r" (TLS_LOAD_PIC), "r" (__l));                      \
++     asm ("add %%g7, %1, %0, %%tie_add(" #x ")" : "=r" (__l) : "r" (__l));    
\
++     __l; })
++
++# define TLS_LD(x) \
++  ({ int *__l; register void *__o0 asm ("%o0");                               
      \
++     long __o;                                                                
      \
++     asm ("sethi %%tldm_hi22(" #x "), %0" : "=r" (__l));                    \
++     asm ("add %1, %%tldm_lo10(" #x "), %0" : "=r" (__l) : "r" (__l));        
      \
++     asm ("add %1, %2, %0, %%tldm_add(" #x ")"                                
      \
++        : "=r" (__o0) : "r" (TLS_LOAD_PIC), "r" (__l));                     \
++     asm ("call __tls_get_addr, %%tgd_call(" #x ")\n\t"                       
      \
++        " nop"                                                              \
++        : "=r" (__o0) : "0" (__o0)                                          \
++        : "g1", "g2", "g3", "g4", "g5", "g6", "o1", "o2", "o3", "o4",       \
++          "o5", "o7", "cc");                                                \
++     asm ("sethi %%tldo_hix22(" #x "), %0" : "=r" (__o));                   \
++     asm ("xor %1, %%tldo_lox10(" #x "), %0" : "=r" (__o) : "r" (__o));       
      \
++     asm ("add %1, %2, %0, %%tldo_add(" #x ")" : "=r" (__l)                 \
++        : "r" (__o0), "r" (__o));                                           \
++     __l; })
++
++# define TLS_GD(x) \
++  ({ int *__l; register void *__o0 asm ("%o0");                               
      \
++     asm ("sethi %%tgd_hi22(" #x "), %0" : "=r" (__l));                       
      \
++     asm ("add %1, %%tgd_lo10(" #x "), %0" : "=r" (__l) : "r" (__l));       \
++     asm ("add %1, %2, %0, %%tgd_add(" #x ")"                               \
++        : "=r" (__o0) : "r" (TLS_LOAD_PIC), "r" (__l));                     \
++     asm ("call __tls_get_addr, %%tgd_call(" #x ")\n\t"                       
      \
++        " nop"                                                              \
++        : "=r" (__o0) : "0" (__o0)                                          \
++        : "g1", "g2", "g3", "g4", "g5", "g6", "o1", "o2", "o3", "o4",       \
++          "o5", "o7", "cc");                                                \
++     __o0; })
++
+ #elif defined __s390x__
+ 
+ # define TLS_LE(x) \

Added: trunk/glibc/glibc-20050912-libgcc_eh-1.patch
===================================================================
--- trunk/glibc/glibc-20050912-libgcc_eh-1.patch        2005-09-15 02:25:33 UTC 
(rev 1119)
+++ trunk/glibc/glibc-20050912-libgcc_eh-1.patch        2005-09-15 02:26:08 UTC 
(rev 1120)
@@ -0,0 +1 @@
+link glibc-20050905-libgcc_eh-1.patch
\ No newline at end of file


Property changes on: trunk/glibc/glibc-20050912-libgcc_eh-1.patch
___________________________________________________________________
Name: svn:special
   + *

Added: trunk/glibc/glibc-20050912-sparc64_tls-1.patch
===================================================================
--- trunk/glibc/glibc-20050912-sparc64_tls-1.patch      2005-09-15 02:25:33 UTC 
(rev 1119)
+++ trunk/glibc/glibc-20050912-sparc64_tls-1.patch      2005-09-15 02:26:08 UTC 
(rev 1120)
@@ -0,0 +1 @@
+link glibc-20050905-sparc64_tls-1.patch
\ No newline at end of file


Property changes on: trunk/glibc/glibc-20050912-sparc64_tls-1.patch
___________________________________________________________________
Name: svn:special
   + *

-- 
http://linuxfromscratch.org/mailman/listinfo/patches
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to