summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:02:41 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:02:54 -0700
commit85b358949d506ddc7c35301e7ae1316d2036a736 (patch)
tree7c50333e6b35e83d43bc0ddb0f8f707eb3da43df
parent225f7eec85b83ad38a1c92dbb16a843732a25899 (diff)
downloadglibc-85b358949d506ddc7c35301e7ae1316d2036a736.tar.gz
Hide __posix_spawn_file_actions_realloc/__spawni [BZ #18822]
Hide internal __posix_spawn_file_actions_realloc and /__spawni functions to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add attribute_hidden. (__spawni): Likewise.
-rw-r--r--ChangeLog7
-rw-r--r--posix/spawn_int.h5
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 21d5d6aa06..6ee7fd4f59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]
+ * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
+ attribute_hidden.
+ (__spawni): Likewise.
+
+2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ [BZ #18822]
* include/sys/mman.h (__mremap): Add libc_hidden_proto.
* sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
libc_hidden_def.
diff --git a/posix/spawn_int.h b/posix/spawn_int.h
index 6ada827f55..01bf603e27 100644
--- a/posix/spawn_int.h
+++ b/posix/spawn_int.h
@@ -57,12 +57,13 @@ struct __spawn_action
#define SPAWN_XFLAGS_TRY_SHELL 0x2
extern int __posix_spawn_file_actions_realloc (posix_spawn_file_actions_t *
- file_actions);
+ file_actions)
+ attribute_hidden;
extern int __spawni (pid_t *pid, const char *path,
const posix_spawn_file_actions_t *file_actions,
const posix_spawnattr_t *attrp, char *const argv[],
- char *const envp[], int xflags);
+ char *const envp[], int xflags) attribute_hidden;
/* Return true if FD falls into the range valid for file descriptors.
The check in this form is mandated by POSIX. */