From 38acf35697c1bca396dedf7139995e6d0d4dd117 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 6 Jan 2016 11:28:04 -0800 Subject: Mark ld.so internal mmap functions hidden in ld.so Since ld.so internal mmap functions are only used internally in ld.so, they can be made hidden. Don't hide __mmap on Hurd, since __mmap in ld.so will be preempted by the one in libc.so after bootstrap. [BZ #19122] * include/sys/mman.h [IS_IN (rtld)]: Include . * sysdeps/generic/dl-mman.h: New file. * sysdeps/mach/hurd/dl-mman.h: Likewise. --- include/sys/mman.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/sys/mman.h') diff --git a/include/sys/mman.h b/include/sys/mman.h index fd125ecb9c..7026f69f42 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -16,6 +16,10 @@ libc_hidden_proto (__madvise) /* This one is Linux specific. */ extern void *__mremap (void *__addr, size_t __old_len, size_t __new_len, int __flags, ...); + +# if IS_IN (rtld) +# include +# endif #endif #endif -- cgit 1.4.1