]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Flush cache after solving TEXTRELs if arch requires it.
authorKirill A. Shutemov <kirill@shutemov.name>
Tue, 15 Jun 2010 00:23:01 +0000 (17:23 -0700)
committerAndreas Schwab <schwab@redhat.com>
Tue, 15 Jun 2010 13:02:46 +0000 (15:02 +0200)
(cherry picked from commit 80da2e093c0e465cfa6e561488aac51c236b6fd2)

ChangeLog
elf/dl-reloc.c

index e30fe1e41b08ea5f2d8033feec3f9b1b17992418..8590e355ea17a4005f4aec370e1d5cdc09fa36b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
+
+       * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
+       requires it.
+
 2010-06-02  Andreas Schwab  <schwab@redhat.com>
 
        * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
index 6c0069147dc80bcd4701f9dc15d332d6d7915c71..23cb59cbc89cf65c5c3f8c56b0459daf8949383f 100644 (file)
@@ -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;
     }