From: Ulrich Drepper Date: Fri, 28 Aug 1998 12:05:28 +0000 (+0000) Subject: (dl_main): Unload map file before jumping to user code. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3a874f157cb5d3127acae8e26843a310cc847a3;p=thirdparty%2Fglibc.git (dl_main): Unload map file before jumping to user code. --- diff --git a/elf/rtld.c b/elf/rtld.c index 637b523415b..b9e4188d9b3 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -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. */ }