Author: jim
Date: 2006-03-06 09:47:47 -0700 (Mon, 06 Mar 2006)
New Revision: 1430

Added:
   trunk/glibc/glibc-2.4-libgcc_eh-1.patch
   trunk/glibc/glibc-2.4-localedef_segfault-1.patch
Modified:
   trunk/
Log:
 [EMAIL PROTECTED]:  jim | 2006-03-06 08:46:46 -0800
 Added: glibc-2.4-libgcc_eh-1.patch glibc-2.4-localedef_segfault-1.patch



Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1710
e59974df-c20a-0410-b7e1-d7eaf1be8828:/patches:1483
   + cc2644d5-6cf8-0310-b111-c40428001e49:/patches:1710
e59974df-c20a-0410-b7e1-d7eaf1be8828:/patches:1489

Added: trunk/glibc/glibc-2.4-libgcc_eh-1.patch
===================================================================
--- trunk/glibc/glibc-2.4-libgcc_eh-1.patch                             (rev 0)
+++ trunk/glibc/glibc-2.4-libgcc_eh-1.patch     2006-03-06 16:47:47 UTC (rev 
1430)
@@ -0,0 +1,24 @@
+Submitted By: Jim Gifford (patches at jg555 dot com)
+Date: 2005-07-20
+Initial Package Version: 2.3.5
+Origin: Rene Rebe <[EMAIL PROTECTED]>
+Upstream Status: Unknown
+Description: Removes dependency for libgcc_eh
+ 
+--- glibc-2.3.5/Makeconfig.orig        2005-07-21 04:53:30.000000000 +0000
++++ glibc-2.3.5/Makeconfig     2005-07-21 04:53:49.000000000 +0000
+@@ -503,12 +503,12 @@
+   libunwind = -lunwind
+ endif
+ ifneq ($(have-as-needed),yes)
+- libgcc_eh := -lgcc_eh $(libunwind)
++ libgcc_eh := $(libunwind)
+ else
+  libgcc_eh := -Wl,--as-needed -lgcc_s$(libgcc_s_suffix) $(libunwind) 
-Wl,--no-as-needed
+ endif
+ gnulib := -lgcc $(libgcc_eh)
+-static-gnulib := -lgcc -lgcc_eh $(libunwind)
++static-gnulib := -lgcc $(libunwind)
+ libc.so-gnulib := -lgcc
+ endif
+ ifeq ($(elf),yes)


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

Added: trunk/glibc/glibc-2.4-localedef_segfault-1.patch
===================================================================
--- trunk/glibc/glibc-2.4-localedef_segfault-1.patch                            
(rev 0)
+++ trunk/glibc/glibc-2.4-localedef_segfault-1.patch    2006-03-06 16:47:47 UTC 
(rev 1430)
@@ -0,0 +1,56 @@
+Submitted By: Jim Gifford (patches at jg555 dot com)
+Date: 2005-09-29
+Initial Package Version: 2.3.2
+Origin: Debian
+Upstream Status: Unknown
+Description: Fixes Segfault when using localdef.
+             This problem is only noticed when using PaX
+             and some architectures besides x86.
+            See debian bug # 231438
+
+ 
+--- glibc-20050926/locale/programs/3level.h.orig       2005-09-30 
06:00:37.000000000 +0000
++++ glibc-20050926/locale/programs/3level.h    2005-09-30 06:01:02.000000000 
+0000
+@@ -204,6 +204,42 @@
+       }
+     }
+ }
++
++/* GCC ATM seems to do a poor job with pointers to nested functions passed
++   to inlined functions.  Help it a little bit with this hack.  */
++#define wchead_table_iterate(tp, fn) \
++do                                                                          \
++  {                                                                         \
++    struct wchead_table *t = (tp);                                          \
++    uint32_t index1;                                                        \
++    for (index1 = 0; index1 < t->level1_size; index1++)                       
      \
++      {                                                                       
      \
++      uint32_t lookup1 = t->level1[index1];                                 \
++      if (lookup1 != ((uint32_t) ~0))                                       \
++        {                                                                   \
++          uint32_t lookup1_shifted = lookup1 << t->q;                       \
++          uint32_t index2;                                                  \
++          for (index2 = 0; index2 < (1 << t->q); index2++)                  \
++            {                                                               \
++              uint32_t lookup2 = t->level2[index2 + lookup1_shifted];       \
++              if (lookup2 != ((uint32_t) ~0))                               \
++                {                                                           \
++                  uint32_t lookup2_shifted = lookup2 << t->p;               \
++                  uint32_t index3;                                          \
++                  for (index3 = 0; index3 < (1 << t->p); index3++)          \
++                    {                                                       \
++                      struct element_t *lookup3                             \
++                        = t->level3[index3 + lookup2_shifted];              \
++                      if (lookup3 != NULL)                                  \
++                        fn ((((index1 << t->q) + index2) << t->p) + index3, \
++                            lookup3);                                       \
++                    }                                                       \
++                }                                                           \
++            }                                                               \
++        }                                                                   \
++      }                                                                       
      \
++  } while (0)
++
+ #endif
+ 
+ #ifndef NO_FINALIZE


Property changes on: trunk/glibc/glibc-2.4-localedef_segfault-1.patch
___________________________________________________________________
Name: svn:executable
   + *

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

Reply via email to