]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Hide internal __assert_fail_base function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:06:00 +0000 (16:06 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:06:13 +0000 (16:06 -0700)
Hide internal __assert_fail_base function to allow direct access within
libc.so and libc.a without using GOT nor PLT.

[BZ #18822]
* include/assert.h (__assert_fail_base): Add attribute_hidden.

ChangeLog
include/assert.h

index 7a6cb4a043b3daec527c30f2ec2aab79cf7e98b3..2b486b19a63e91600b201e1566eac3337746e729 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #18822]
+       * include/assert.h (__assert_fail_base): Add attribute_hidden.
+
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
index c4526679562294a32b51f5ddfd18ade1c0596b1a..c0f7e1a91c650b5b5e9dcf3fa7f204a99aba5a52 100644 (file)
@@ -18,7 +18,7 @@ extern void __assert_perror_fail (int __errnum, const char *__file,
 extern void __assert_fail_base (const char *fmt, const char *assertion,
                                const char *file, unsigned int line,
                                const char *function)
-     __THROW  __attribute__ ((__noreturn__));
+     __THROW  __attribute__ ((__noreturn__)) attribute_hidden;
 
 # if IS_IN (libc) || IS_IN (rtld)
 hidden_proto (__assert_fail)