From: H.J. Lu Date: Sun, 1 Oct 2017 23:06:00 +0000 (-0700) Subject: Hide internal __assert_fail_base function [BZ #18822] X-Git-Tag: glibc-2.27~797 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=048dd6813f36c31fa21871d840a0b62f1c3a590f;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index 7a6cb4a043b..2b486b19a63 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-10-01 H.J. Lu + + [BZ #18822] + * include/assert.h (__assert_fail_base): Add attribute_hidden. + 2017-10-01 H.J. Lu [BZ #18822] diff --git a/include/assert.h b/include/assert.h index c4526679562..c0f7e1a91c6 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)