mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
x86-64: Mark internal symbols with attribute_hidden [BZ #18822]
Since __syscall_clock_gettime and __start_context are internal symbols for Linux/x86-64, mark them with attribute_hidden. [BZ #18822] * sysdeps/unix/sysv/linux/x86_64/init-first.c (__syscall_clock_gettime): Add attribute_hidden. * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__start_context): Likewise.
This commit is contained in:
parent
568ff4296c
commit
41e673c1e7
@ -1,3 +1,11 @@
|
||||
2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #18822]
|
||||
* sysdeps/unix/sysv/linux/x86_64/init-first.c
|
||||
(__syscall_clock_gettime): Add attribute_hidden.
|
||||
* sysdeps/unix/sysv/linux/x86_64/makecontext.c
|
||||
(__start_context): Likewise.
|
||||
|
||||
2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* include/libc-symbols.h (__hidden_proto_hiddenattr): New for
|
||||
|
@ -27,7 +27,7 @@ long int (*VDSO_SYMBOL(clock_gettime)) (clockid_t, struct timespec *)
|
||||
long int (*VDSO_SYMBOL(getcpu)) (unsigned *, unsigned *, void *)
|
||||
attribute_hidden;
|
||||
|
||||
extern long int __syscall_clock_gettime (clockid_t, struct timespec *);
|
||||
extern __typeof (clock_gettime) __syscall_clock_gettime attribute_hidden;
|
||||
|
||||
|
||||
static inline void
|
||||
|
@ -51,7 +51,7 @@
|
||||
void
|
||||
__makecontext (ucontext_t *ucp, void (*func) (void), int argc, ...)
|
||||
{
|
||||
extern void __start_context (void);
|
||||
extern void __start_context (void) attribute_hidden;
|
||||
greg_t *sp;
|
||||
unsigned int idx_uc_link;
|
||||
va_list ap;
|
||||
|
Loading…
Reference in New Issue
Block a user