mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
Define write_profiling functions only in profile library [BZ #31756]
libc.so doesn't use nor export write_profiling functions. There is no point to define them in libc.so nor in libc.a. Fix BZ #31756 by defining them only in profile library. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
43d41ae6d7
commit
6d3b523eb5
@ -439,6 +439,7 @@ write_gmon (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef PROF
|
||||||
void
|
void
|
||||||
__write_profiling (void)
|
__write_profiling (void)
|
||||||
{
|
{
|
||||||
@ -448,7 +449,7 @@ __write_profiling (void)
|
|||||||
write_gmon ();
|
write_gmon ();
|
||||||
_gmonparam.state = save;
|
_gmonparam.state = save;
|
||||||
}
|
}
|
||||||
#ifndef SHARED
|
|
||||||
/* This symbol isn't used anywhere in the DSO and it is not exported.
|
/* This symbol isn't used anywhere in the DSO and it is not exported.
|
||||||
This would normally mean it should be removed to get the same API
|
This would normally mean it should be removed to get the same API
|
||||||
in static libraries. But since profiling is special in static libs
|
in static libraries. But since profiling is special in static libs
|
||||||
|
Loading…
Reference in New Issue
Block a user