]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Hide __posix_spawn_file_actions_realloc/__spawni [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:02:41 +0000 (16:02 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:02:54 +0000 (16:02 -0700)
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.

ChangeLog
posix/spawn_int.h

index 21d5d6aa06fa6af3fc853e4b40fc1d8eb9b1f2e6..6ee7fd4f595f56bed61392ed18d5f8ebbc5f41ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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]
index 6ada827f5598ccfd26971ee0bbd43807c9fb86da..01bf603e274cb458f48fec219a7bbdf3bda9f491 100644 (file)
@@ -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.  */