diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-03-04 17:54:14 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-03-04 17:54:14 +0100 |
commit | de71ee7b3c61dd26b78599da492b1168b31e70b6 (patch) | |
tree | 33bfb32c8528dfe3869ab84bb244dc0df8e97240 /elf | |
parent | ce6ddae03639529d5ca3a9eebb2d8b02bfd2ea97 (diff) | |
download | glibc-de71ee7b3c61dd26b78599da492b1168b31e70b6.tar.gz |
elf: Remove remnants of MAP_ANON emulation
Most of the code was removed in commit
20739e5454c12acbc0479387fe795c5b19a4166f ("* elf/dl-load.c:
Remove support for systems without MAP_ANON.").
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-load.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 0e759cf8ca..2bbef81b6e 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -947,21 +947,6 @@ _dl_map_object_from_fd (const char *name, const char *origname, int fd, /* This is the ELF header. We read it in `open_verify'. */ header = (void *) fbp->buf; -#ifndef MAP_ANON -# define MAP_ANON 0 - if (_dl_zerofd == -1) - { - _dl_zerofd = _dl_sysdep_open_zero_fill (); - if (_dl_zerofd == -1) - { - free (realname); - __close_nocancel (fd); - _dl_signal_error (errno, NULL, NULL, - N_("cannot open zero fill device")); - } - } -#endif - /* Signal that we are going to add new objects. */ if (r->r_state == RT_CONSISTENT) { |