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.
This commit is contained in:
parent
6e342af6e7
commit
048dd6813f
|
@ -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>
|
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
[BZ #18822]
|
[BZ #18822]
|
||||||
|
|
|
@ -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,
|
extern void __assert_fail_base (const char *fmt, const char *assertion,
|
||||||
const char *file, unsigned int line,
|
const char *file, unsigned int line,
|
||||||
const char *function)
|
const char *function)
|
||||||
__THROW __attribute__ ((__noreturn__));
|
__THROW __attribute__ ((__noreturn__)) attribute_hidden;
|
||||||
|
|
||||||
# if IS_IN (libc) || IS_IN (rtld)
|
# if IS_IN (libc) || IS_IN (rtld)
|
||||||
hidden_proto (__assert_fail)
|
hidden_proto (__assert_fail)
|
||||||
|
|
Loading…
Reference in New Issue