about summary refs log tree commit diff
path: root/elf/rtld.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-03-31 22:03:24 +0000
committerUlrich Drepper <drepper@redhat.com>2009-03-31 22:03:24 +0000
commit20739e5454c12acbc0479387fe795c5b19a4166f (patch)
treec919e6b6991686f97bac69910049a3e6325287ed /elf/rtld.c
parentcb14424eb93499ba6e6dc8dba45ef6a58ce0a174 (diff)
downloadglibc-20739e5454c12acbc0479387fe795c5b19a4166f.tar.gz
glibc-20739e5454c12acbc0479387fe795c5b19a4166f.tar.xz
glibc-20739e5454c12acbc0479387fe795c5b19a4166f.zip
* elf/dl-load.c: Remove support for systems without MAP_ANON.
	* elf/dl-minimal.c: Likewise.
	* elf/dl-misc.c: Likewise.
	* elf/rtld.c: Likewise.
	* sysdeps/generic/ldsodefs.h: Likewise.
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index bfe9564463..115c6da497 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -24,7 +24,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/mman.h>		/* Check if MAP_ANON is defined.  */
+#include <sys/mman.h>
 #include <sys/param.h>
 #include <sys/stat.h>
 #include <ldsodefs.h>
@@ -1782,12 +1782,6 @@ ERROR: ld.so: object '%s' cannot be loaded as audit interface: %s; ignored.\n",
   for (i = main_map->l_searchlist.r_nlist; i > 0; )
     main_map->l_searchlist.r_list[--i]->l_global = 1;
 
-#ifndef MAP_ANON
-  /* We are done mapping things, so close the zero-fill descriptor.  */
-  __close (_dl_zerofd);
-  _dl_zerofd = -1;
-#endif
-
   /* Remove _dl_rtld_map from the chain.  */
   GL(dl_rtld_map).l_prev->l_next = GL(dl_rtld_map).l_next;
   if (GL(dl_rtld_map).l_next != NULL)