diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2016-01-06 11:28:04 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-01-06 11:28:56 -0800 |
commit | 38acf35697c1bca396dedf7139995e6d0d4dd117 (patch) | |
tree | d297b1dcc20d12b968fbd88b96472445dcd0b53b /include | |
parent | 084e7d57bbdeaeca3ea279600daefe2e614593b6 (diff) | |
download | glibc-38acf35697c1bca396dedf7139995e6d0d4dd117.zip glibc-38acf35697c1bca396dedf7139995e6d0d4dd117.tar.gz glibc-38acf35697c1bca396dedf7139995e6d0d4dd117.tar.bz2 |
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')
-rw-r--r-- | include/sys/mman.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h index fd125ec..7026f69 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 |