diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-03-31 22:03:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-03-31 22:03:24 +0000 |
commit | 20739e5454c12acbc0479387fe795c5b19a4166f (patch) | |
tree | c919e6b6991686f97bac69910049a3e6325287ed /elf/dl-load.c | |
parent | cb14424eb93499ba6e6dc8dba45ef6a58ce0a174 (diff) | |
download | glibc-20739e5454c12acbc0479387fe795c5b19a4166f.tar glibc-20739e5454c12acbc0479387fe795c5b19a4166f.tar.gz glibc-20739e5454c12acbc0479387fe795c5b19a4166f.tar.bz2 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/dl-load.c')
-rw-r--r-- | elf/dl-load.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 0deb51e445..03edbab279 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -85,14 +85,6 @@ #define STRING(x) __STRING (x) -#ifdef MAP_ANON -/* The fd is not examined when using MAP_ANON. */ -# define ANONFD -1 -#else -int _dl_zerofd = -1; -# define ANONFD _dl_zerofd -#endif - /* Handle situations where we have a preferred location in memory for the shared objects. */ #ifdef ELF_PREFERRED_ADDRESS_DATA @@ -1312,7 +1304,7 @@ cannot allocate TLS data structures for initial thread"); caddr_t mapat; mapat = __mmap ((caddr_t) zeropage, zeroend - zeropage, c->prot, MAP_ANON|MAP_PRIVATE|MAP_FIXED, - ANONFD, 0); + -1, 0); if (__builtin_expect (mapat == MAP_FAILED, 0)) { errstring = N_("cannot map zero-fill pages"); |