aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-10-15 14:23:09 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-10-15 14:23:31 -0700
commitbdcd03eaca8133b20a8b9a60403915902c1792a5 (patch)
tree90de896c2e17882ff9804eb51fc1810eb1db5756
parent661462d58f90c03765a8799714a9ea485d3b1935 (diff)
downloadglibc-bdcd03eaca8133b20a8b9a60403915902c1792a5.tar
glibc-bdcd03eaca8133b20a8b9a60403915902c1792a5.tar.gz
glibc-bdcd03eaca8133b20a8b9a60403915902c1792a5.tar.bz2
glibc-bdcd03eaca8133b20a8b9a60403915902c1792a5.zip
Mark ld.so internel sigaction functions hidden
Since ld.so internel sigaction functions are only used internally in ld.so, they can be made hidden. [BZ #19122] * include/signal.h [IS_IN (rtld)] (__sigaction): Add attribute_hidden. [IS_IN (rtld)] (__libc_sigaction): Likewise.
-rw-r--r--ChangeLog4
-rw-r--r--include/signal.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 94869bcb3d..1153608359 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
2015-10-15 H.J. Lu <hongjiu.lu@intel.com>
[BZ #19122]
+ * include/signal.h [IS_IN (rtld)] (__sigaction): Add
+ attribute_hidden.
+ [IS_IN (rtld)] (__libc_sigaction): Likewise.
+
* include/setjmp.h (__longjmp): Add attribute_hidden.
[IS_IN (rtld)] (__sigsetjmp): Likewise.
diff --git a/include/signal.h b/include/signal.h
index b69de03ff6..276a99d80a 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -61,6 +61,11 @@ extern int __xpg_sigpause (int sig);
/* Allocate real-time signal with highest/lowest available priority. */
extern int __libc_allocate_rtsig (int __high);
+
+# if IS_IN (rtld)
+extern __typeof (__sigaction) __sigaction attribute_hidden;
+extern __typeof (__libc_sigaction) __libc_sigaction attribute_hidden;
+# endif
# endif
#endif
#endif