diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-10-22 01:05:28 -0400 |
---|---|---|
committer | Austin Foxley <austinf@cetoncorp.com> | 2009-11-09 15:34:18 -0800 |
commit | c7e4f11335adcdad03e24ad2648b873f116337aa (patch) | |
tree | 36792c3a1a6438a0d882d82f75446e6308139d0d /libpthread/linuxthreads.old/forward.c | |
parent | 1a39ca7231bd4c009c40255e7a20adbed3e31890 (diff) |
libc: add hidden calls to pthread cleanup funcs
A lot of libc code calls the pthread cleanup funcs implicitly (for stdio)
which currently goes through the PLT. Since we already have forwarding
symbols for these funcs, it's safe to declare the internal libc usage
hidden as a loaded libpthread will have the real symbols found.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/linuxthreads.old/forward.c')
-rw-r--r-- | libpthread/linuxthreads.old/forward.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/forward.c b/libpthread/linuxthreads.old/forward.c index 402b15543..f5afc2f98 100644 --- a/libpthread/linuxthreads.old/forward.c +++ b/libpthread/linuxthreads.old/forward.c @@ -165,6 +165,8 @@ FORWARD (pthread_setcanceltype, (int type, int *oldtype), (type, oldtype), 0) FORWARD2 (_pthread_cleanup_push, void, (struct _pthread_cleanup_buffer * buffer, void (*routine)(void *), void * arg), (buffer, routine, arg), return) FORWARD2 (_pthread_cleanup_push_defer, void, (struct _pthread_cleanup_buffer * buffer, void (*routine)(void *), void * arg), (buffer, routine, arg), return) +libc_hidden_def(_pthread_cleanup_push_defer) FORWARD2 (_pthread_cleanup_pop, void, (struct _pthread_cleanup_buffer * buffer, int execute), (buffer, execute), return) FORWARD2 (_pthread_cleanup_pop_restore, void, (struct _pthread_cleanup_buffer * buffer, int execute), (buffer, execute), return) +libc_hidden_def(_pthread_cleanup_pop_restore) |