+2019-03-04 Florian Weimer <fweimer@redhat.com>
+
+ * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
+ declaration.
+ * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
+ defined.
+
2019-03-04 Stefan Liebler <stli@linux.ibm.com>
* sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
/* 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)
{
/* Random data provided by the kernel. */
extern void *_dl_random attribute_hidden attribute_relro;
-/* OS-dependent function to open the zero-fill device. */
-extern int _dl_sysdep_open_zero_fill (void); /* dl-sysdep.c */
-
-
/* Write message on the debug file descriptor. The parameters are
interpreted as for a `printf' call. All the lines start with a
tag showing the PID. */