diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-08-26 00:07:26 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-08-26 00:07:26 +0000 |
commit | 08cac4ac19abd40887afbd9d841cd96a8efbbe98 (patch) | |
tree | 4bf358e1cb79b646a43b0fc527436e240ee4edaa /elf/rtld.c | |
parent | 6dbb7062ff2af970c6b8befecf71d7284d5813fb (diff) | |
download | glibc-08cac4ac19abd40887afbd9d841cd96a8efbbe98.tar.gz glibc-08cac4ac19abd40887afbd9d841cd96a8efbbe98.tar.xz glibc-08cac4ac19abd40887afbd9d841cd96a8efbbe98.zip |
Update.
1998-08-25 Ulrich Drepper <drepper@cygnus.com> * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize to toplevel. (_dl_unload_cache): New function. * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache. * elf/dl-open.c (_dl_open): Unload map file before freeing the lock. * elf/rtld (dl_main): Unload map file before jumping to user code. * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT. Correct comment for O_LARGEFILE. * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT. Change O_LARGEFILE to correct value. 1998-08-25 14:34 Ulrich Drepper <drepper@cygnus.com> * libio/iogetline.c (_IO_getline_info): Don't read anything for N == 0. Patch by HJ Lu.
Diffstat (limited to 'elf/rtld.c')
-rw-r--r-- | elf/rtld.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/elf/rtld.c b/elf/rtld.c index 3fd13179ba..13c4f2698e 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -40,6 +40,9 @@ extern ElfW(Addr) _dl_sysdep_start (void **start_argptr, ElfW(Addr) *user_entry)); extern void _dl_sysdep_start_cleanup (void); +/* This function is used to unload the cache file if necessary. */ +extern void _dl_unload_cache (void); + /* System-dependent function to read a file's whole contents in the most convenient manner available. */ extern void *_dl_sysdep_read_whole_file (const char *filename, @@ -918,6 +921,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 + /* Now enable profiling if needed. */ if (_dl_profile_map != NULL) /* We must prepare the profiling. */ |