]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(dl_main): Unload map file before jumping to user code.
authorUlrich Drepper <drepper@redhat.com>
Fri, 28 Aug 1998 12:05:28 +0000 (12:05 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 28 Aug 1998 12:05:28 +0000 (12:05 +0000)
elf/rtld.c

index 637b523415ba79f0c78b00504afa2c345a998f22..b9e4188d9b36c2552b3ef2952c250fa7385c05f9 100644 (file)
@@ -660,6 +660,11 @@ of this helper program; chances are you did not intend to run this program.\n",
     _dl_debug_state ();
   }
 
+#ifndef MAP_COPY
+  /* We must munmap() the cache file.  */
+  _dl_unload_cache ();
+#endif
+
   /* Once we return, _dl_sysdep_start will invoke
      the DT_INIT functions and then *USER_ENTRY.  */
 }