about summary refs log tree commit diff
path: root/include/sys
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-01-06 11:28:04 -0800
committerH.J. Lu <hjl.tools@gmail.com>2016-01-06 11:28:56 -0800
commit38acf35697c1bca396dedf7139995e6d0d4dd117 (patch)
treed297b1dcc20d12b968fbd88b96472445dcd0b53b /include/sys
parent084e7d57bbdeaeca3ea279600daefe2e614593b6 (diff)
downloadglibc-38acf35697c1bca396dedf7139995e6d0d4dd117.tar.gz
glibc-38acf35697c1bca396dedf7139995e6d0d4dd117.tar.xz
glibc-38acf35697c1bca396dedf7139995e6d0d4dd117.zip
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 <dl-mman.h>.
	 * sysdeps/generic/dl-mman.h: New file.
	 * sysdeps/mach/hurd/dl-mman.h: Likewise.
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/mman.h4
1 files changed, 4 insertions, 0 deletions
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 <dl-mman.h>
+# endif
 #endif
 
 #endif