diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-04-14 20:01:33 +0300 |
---|---|---|
committer | Austin Foxley <austinf@cetoncorp.com> | 2010-04-14 10:53:08 -0700 |
commit | 1610762362e651f86ca284ac59a1d7ec88034e4e (patch) | |
tree | dd0950ba51eb7cd72d4f2ae67ee262d51394994b /libpthread/nptl/pthread_attr_setdetachstate.c | |
parent | bd881300eb5380e4bd636b092b706b4b31def7fb (diff) |
nptl: mark symbols with libc forwarder hidden
Add attribute_hidden to all symbols having libc forwarder. This prevents
recursive self calls which would happen if libc is before libpthread in
linking order: the forwarder functions would call itself via the function
table, since the libpthread symbols would get overwritten with libc ones.
This has not been a problem in glibc since there these symbols are marked
hidden with linker version-script. Since we don't use one, we need to mark
these explicitly.
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl/pthread_attr_setdetachstate.c')
-rw-r--r-- | libpthread/nptl/pthread_attr_setdetachstate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpthread/nptl/pthread_attr_setdetachstate.c b/libpthread/nptl/pthread_attr_setdetachstate.c index b6d9bb52e..d72fd8360 100644 --- a/libpthread/nptl/pthread_attr_setdetachstate.c +++ b/libpthread/nptl/pthread_attr_setdetachstate.c @@ -23,6 +23,7 @@ int +attribute_hidden __pthread_attr_setdetachstate (pthread_attr_t *attr, int detachstate) { struct pthread_attr *iattr; |