aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:06:00 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:06:13 -0700
commit048dd6813f36c31fa21871d840a0b62f1c3a590f (patch)
tree449a197eb23352c095e96ff2ede0397ca8d166c4
parent6e342af6e7399c96246c6174802e84d46a176ffa (diff)
downloadglibc-048dd6813f36c31fa21871d840a0b62f1c3a590f.tar
glibc-048dd6813f36c31fa21871d840a0b62f1c3a590f.tar.gz
glibc-048dd6813f36c31fa21871d840a0b62f1c3a590f.tar.bz2
glibc-048dd6813f36c31fa21871d840a0b62f1c3a590f.zip
Hide internal __assert_fail_base function [BZ #18822]
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.
-rw-r--r--ChangeLog5
-rw-r--r--include/assert.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7a6cb4a043..2b486b19a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
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]
* sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
attribute_hidden.
diff --git a/include/assert.h b/include/assert.h
index c452667956..c0f7e1a91c 100644
--- a/include/assert.h
+++ b/include/assert.h
@@ -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)