mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
Hide internal __moncontrol function [BZ #18822]
Hide internal __moncontrol function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * mon/gmon.c (__moncontrol): Add libc_hidden_proto and libc_hidden_def.
This commit is contained in:
parent
2f8a05d826
commit
fa4265909e
@ -1,3 +1,9 @@
|
||||
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #18822]
|
||||
* mon/gmon.c (__moncontrol): Add libc_hidden_proto and
|
||||
libc_hidden_def.
|
||||
|
||||
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #18822]
|
||||
|
@ -62,6 +62,7 @@ static int s_scale;
|
||||
|
||||
void moncontrol (int mode);
|
||||
void __moncontrol (int mode);
|
||||
libc_hidden_proto (__moncontrol)
|
||||
static void write_hist (int fd);
|
||||
static void write_call_graph (int fd);
|
||||
static void write_bb_counts (int fd);
|
||||
@ -93,6 +94,7 @@ __moncontrol (int mode)
|
||||
p->state = GMON_PROF_OFF;
|
||||
}
|
||||
}
|
||||
libc_hidden_def (__moncontrol)
|
||||
weak_alias (__moncontrol, moncontrol)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user