From 20739e5454c12acbc0479387fe795c5b19a4166f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 31 Mar 2009 22:03:24 +0000 Subject: * 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. --- elf/rtld.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'elf/rtld.c') 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 #include #include -#include /* Check if MAP_ANON is defined. */ +#include #include #include #include @@ -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) -- cgit v1.2.3-70-g09d2