From 1610762362e651f86ca284ac59a1d7ec88034e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Wed, 14 Apr 2010 20:01:33 +0300 Subject: nptl: mark symbols with libc forwarder hidden MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Austin Foxley --- libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S | 1 + 1 file changed, 1 insertion(+) (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S') diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S b/libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S index 3d37fb486..fa051b1ec 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S @@ -29,6 +29,7 @@ .globl __pthread_rwlock_wrlock .type __pthread_rwlock_wrlock,@function + .hidden __pthread_rwlock_wrlock .align 5 __pthread_rwlock_wrlock: mov.l r12, @-r15 -- cgit v1.2.3