]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_dl_relocate_object): Add call to flush cache after .text segment
authorUlrich Drepper <drepper@redhat.com>
Sat, 18 Dec 1999 22:56:03 +0000 (22:56 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 18 Dec 1999 22:56:03 +0000 (22:56 +0000)
fixups.

elf/dl-reloc.c

index 54a2acc065788b37efe57aaf5018784c22bf1f72..5c3c4d04e36d65698a15e7ecfe43b4174ade82ed 100644 (file)
@@ -126,6 +126,10 @@ _dl_relocate_object (struct link_map *l, struct r_scope_elem *scope[],
            if (__mprotect (mapstart, mapend - mapstart, prot) < 0)
              _dl_signal_error (errno, l->l_name,
                                "can't restore segment prot after reloc");
+
+#ifdef CLEAR_CACHE
+           CLEAR_CACHE (mapstart, mapend);
+#endif 
          }
     }
 }