[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r4354 - in glibc-package/trunk/debian: . patches patches/any



Author: aurel32
Date: 2010-06-15 09:23:29 +0000 (Tue, 15 Jun 2010)
New Revision: 4354

Added:
   glibc-package/trunk/debian/patches/any/cvs-flush-cache-textrels.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
  * Add patches/any/cvs-flush-cache-textrels.diff to fix random crashes
    on ARM, if the executable or shared library has TEXTREL.



Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2010-06-15 08:53:36 UTC (rev 4353)
+++ glibc-package/trunk/debian/changelog	2010-06-15 09:23:29 UTC (rev 4354)
@@ -7,8 +7,10 @@
     patches/alpha/cvs-longjmp-chk.diff.
   * Add patches/any/cvs-redirect-throw.diff to fix some header files 
     with regard to C++.
+  * Add patches/any/cvs-flush-cache-textrels.diff to fix random crashes
+    on ARM, if the executable or shared library has TEXTREL.
 
- -- Aurelien Jarno <aurel32@debian.org>  Tue, 15 Jun 2010 10:52:40 +0200
+ -- Aurelien Jarno <aurel32@debian.org>  Tue, 15 Jun 2010 11:21:54 +0200
 
 eglibc (2.11.2-1) unstable; urgency=low
 

Added: glibc-package/trunk/debian/patches/any/cvs-flush-cache-textrels.diff
===================================================================
--- glibc-package/trunk/debian/patches/any/cvs-flush-cache-textrels.diff	                        (rev 0)
+++ glibc-package/trunk/debian/patches/any/cvs-flush-cache-textrels.diff	2010-06-15 09:23:29 UTC (rev 4354)
@@ -0,0 +1,27 @@
+2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
+
+	* elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
+	requires it.
+
+diff --git a/elf/dl-reloc.c b/elf/dl-reloc.c
+index 6c00691..23cb59c 100644
+--- a/elf/dl-reloc.c
++++ b/elf/dl-reloc.c
+@@ -1,5 +1,5 @@
+ /* Relocate a shared object and resolve its references to other loaded objects.
+-   Copyright (C) 1995-2006, 2008, 2009 Free Software Foundation, Inc.
++   Copyright (C) 1995-2006, 2008, 2009, 2010 Free Software Foundation, Inc.
+    This file is part of the GNU C Library.
+ 
+    The GNU C Library is free software; you can redistribute it and/or
+@@ -307,6 +307,10 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
+ 	  goto call_error;
+ 	}
+ 
++#ifdef CLEAR_CACHE
++      CLEAR_CACHE (textrels->start, textrels->start + textrels->len);
++#endif
++
+       textrels = textrels->next;
+     }
+ 

Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series	2010-06-15 08:53:36 UTC (rev 4353)
+++ glibc-package/trunk/debian/patches/series	2010-06-15 09:23:29 UTC (rev 4354)
@@ -246,3 +246,4 @@
 any/submitted-string2-strcmp.diff
 any/submitted-group_member.diff
 any/cvs-redirect-throw.diff
+any/cvs-flush-cache-textrels.diff


Reply to: