X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=toolchain%2FuClibc%2Fpatches%2F200-libpthread_fix.patch;fp=toolchain%2FuClibc%2Fpatches%2F200-libpthread_fix.patch;h=0000000000000000000000000000000000000000;hp=148f608cd081d0f97efe7240af3c416bdb1a360f;hb=453d862a3d708fd707fb72ad179bc7ac61db2098;hpb=cb41ac0e6e8a63af2c3122d4960628f6d7d66496 diff --git a/toolchain/uClibc/patches/200-libpthread_fix.patch b/toolchain/uClibc/patches/200-libpthread_fix.patch deleted file mode 100644 index 148f608cd0..0000000000 --- a/toolchain/uClibc/patches/200-libpthread_fix.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/libpthread/linuxthreads/libc-cancellation.c -+++ b/libpthread/linuxthreads/libc-cancellation.c -@@ -31,9 +31,6 @@ - weak_extern (__pthread_do_exit) - # endif - --int __libc_multiple_threads attribute_hidden __attribute__((nocommon)); --strong_alias (__libc_multiple_threads, __librt_multiple_threads) -- - /* The next two functions are similar to pthread_setcanceltype() but - more specialized for the use in the cancelable functions like write(). - They do not need to check parameters etc. */ ---- a/libpthread/linuxthreads/libc_pthread_init.c -+++ b/libpthread/linuxthreads/libc_pthread_init.c -@@ -33,6 +33,9 @@ libc_hidden_proto(memcpy) - libc_hidden_proto(uselocale) - #endif - -+int __libc_multiple_threads attribute_hidden __attribute__((nocommon)); -+strong_alias (__libc_multiple_threads, __librt_multiple_threads) -+ - int * - __libc_pthread_init (functions) - const struct pthread_functions *functions; ---- a/libpthread/linuxthreads/Makefile.in -+++ b/libpthread/linuxthreads/Makefile.in -@@ -77,7 +77,7 @@ libpthread-a-y += $(libpthread_OBJ:.o=. - else - libpthread-a-y += $(libpthread_OBJ) $(libpthread-static-y) - endif --libpthread-so-y += $(libpthread_OBJ:.o=.os) -+libpthread-so-y += $(libpthread_OBJ:.o=.oS) - - lib-a-$(UCLIBC_HAS_THREADS) += $(top_builddir)lib/libpthread.a - lib-so-$(UCLIBC_HAS_THREADS) += $(top_builddir)lib/libpthread.so ---- a/libpthread/linuxthreads/pthread.c -+++ b/libpthread/linuxthreads/pthread.c -@@ -32,6 +32,8 @@ - #include "smp.h" - #include - -+#define HAVE_Z_NODELETE -+ - /* Sanity check. */ - #if !defined __SIGRTMIN || (__SIGRTMAX - __SIGRTMIN) < 3 - # error "This must not happen" -@@ -976,7 +978,9 @@ static void pthread_onexit_process(int r - request.req_args.exit.code = retcode; - TEMP_FAILURE_RETRY(write_not_cancel(__pthread_manager_request, - (char *) &request, sizeof(request))); -+#ifdef notyet - suspend(self); -+#endif - /* Main thread should accumulate times for thread manager and its - children, so that timings for main thread account for all threads. */ - if (self == __pthread_main_thread)