diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 16:01:43 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-01 16:02:04 -0700 |
commit | 225f7eec85b83ad38a1c92dbb16a843732a25899 (patch) | |
tree | 7b6e1ffc162075ebadc7daf06c85ce28f4a1bde7 /include/sys | |
parent | 372fe247b11eb4079f93f11f3f20d14bc6c2c57f (diff) | |
download | glibc-225f7eec85b83ad38a1c92dbb16a843732a25899.tar.gz glibc-225f7eec85b83ad38a1c92dbb16a843732a25899.tar.xz glibc-225f7eec85b83ad38a1c92dbb16a843732a25899.zip |
Hide internal __mremap function [BZ #18822]
Hide internal __mremap function to allow direct access within libc.so and libc.a without using GOT nor PLT. __GI___mremap is defined when sysdeps/unix/syscalls.list is used to generate mremap. Otherwise libc_hidden_def is needed explicitly. [BZ #18822] * include/sys/mman.h (__mremap): Add libc_hidden_proto. * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add libc_hidden_def.
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/mman.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h index 8b996fce73..503edaae88 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -20,6 +20,7 @@ libc_hidden_proto (__madvise) /* This one is Linux specific. */ extern void *__mremap (void *__addr, size_t __old_len, size_t __new_len, int __flags, ...); +libc_hidden_proto (__mremap) # if IS_IN (rtld) # include <dl-mman.h> |