svn commit: trunk/uClibc: libc/signal libc/sysdeps/linux/common/bi etc...
vda at uclibc.org
vda at uclibc.org
Sat Nov 22 17:15:56 UTC 2008
Author: vda
Date: 2008-11-22 09:15:56 -0800 (Sat, 22 Nov 2008)
New Revision: 24122
Log:
signal ops: avoid calls through PLT for __sigXXX ops
linuxthreads.old/manager: pointless style fixes, no code changes
Modified:
trunk/uClibc/libc/signal/sigsetops.c
trunk/uClibc/libc/sysdeps/linux/common/bits/sigset.h
trunk/uClibc/libpthread/linuxthreads.old/manager.c
Changeset:
Modified: trunk/uClibc/libc/signal/sigsetops.c
===================================================================
--- trunk/uClibc/libc/signal/sigsetops.c 2008-11-22 14:24:04 UTC (rev 24121)
+++ trunk/uClibc/libc/signal/sigsetops.c 2008-11-22 17:15:56 UTC (rev 24122)
@@ -9,3 +9,9 @@
#endif
#include <signal.h>
+
+/* Since we massaged signal.h into emitting non-inline function
+ * definitions, we need to finish PLT avoidance trick: */
+libc_hidden_def(__sigismember)
+libc_hidden_def(__sigaddset)
+libc_hidden_def(__sigdelset)
Modified: trunk/uClibc/libc/sysdeps/linux/common/bits/sigset.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/bits/sigset.h 2008-11-22 14:24:04 UTC (rev 24121)
+++ trunk/uClibc/libc/sysdeps/linux/common/bits/sigset.h 2008-11-22 17:15:56 UTC (rev 24122)
@@ -101,8 +101,11 @@
checking is done in the non __ versions. */
extern int __sigismember (__const __sigset_t *, int);
+libc_hidden_proto(__sigismember)
extern int __sigaddset (__sigset_t *, int);
+libc_hidden_proto(__sigaddset)
extern int __sigdelset (__sigset_t *, int);
+libc_hidden_proto(__sigdelset)
# ifdef __USE_EXTERN_INLINES
# define __SIGSETFN(NAME, BODY, CONST) \
Modified: trunk/uClibc/libpthread/linuxthreads.old/manager.c
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/manager.c 2008-11-22 14:24:04 UTC (rev 24121)
+++ trunk/uClibc/libpthread/linuxthreads.old/manager.c 2008-11-22 17:15:56 UTC (rev 24122)
@@ -236,7 +236,7 @@
/* Make gdb aware of new thread and gdb will restart the
new thread when it is ready to handle the new thread. */
if (__pthread_threads_debug && __pthread_sig_debug > 0) {
- PDEBUG("about to call raise(__pthread_sig_debug)\n");
+ PDEBUG("about to call raise(__pthread_sig_debug)\n");
raise(__pthread_sig_debug);
}
case REQ_KICK:
@@ -349,8 +349,7 @@
if (attr != NULL && attr->__stackaddr_set)
{
/* The user provided a stack. */
- new_thread =
- (pthread_descr) ((long)(attr->__stackaddr) & -sizeof(void *)) - 1;
+ new_thread = (pthread_descr) ((long)(attr->__stackaddr) & -sizeof(void *)) - 1;
new_thread_bottom = (char *) attr->__stackaddr - attr->__stacksize;
guardaddr = NULL;
guardsize = 0;
@@ -368,7 +367,7 @@
#ifdef __ARCH_USE_MMU__
stacksize = STACK_SIZE - pagesize;
if (attr != NULL)
- stacksize = MIN (stacksize, roundup(attr->__stacksize, pagesize));
+ stacksize = MIN(stacksize, roundup(attr->__stacksize, pagesize));
/* Allocate space for stack and thread descriptor at default address */
new_thread = default_new_thread;
new_thread_bottom = (char *) (new_thread + 1) - stacksize;
@@ -394,7 +393,7 @@
/* Put a bad page at the bottom of the stack */
guardsize = attr->__guardsize;
guardaddr = (void *)new_thread_bottom - guardsize;
- if (mmap ((caddr_t) guardaddr, guardsize, 0, MAP_FIXED, -1, 0)
+ if (mmap((caddr_t) guardaddr, guardsize, 0, MAP_FIXED, -1, 0)
== MAP_FAILED)
{
/* We don't make this an error. */
More information about the uClibc-cvs
mailing list