This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
RTLD_SINGLE_THREAD_P build fixes
- From: Daniel Jacobowitz <drow at false dot org>
- To: libc-ports at sourceware dot org
- Date: Tue, 31 Oct 2006 12:40:03 -0500
- Subject: RTLD_SINGLE_THREAD_P build fixes
ARM and MIPS fixes for a recent change to HEAD; other ports will need
similar.
--
Daniel Jacobowitz
CodeSourcery
2006-10-31 Daniel Jacobowitz <dan@codesourcery.com>
* sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h
(RTLD_SINGLE_THREAD_P): Define.
Index: sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h,v
retrieving revision 1.2
diff -u -p -r1.2 sysdep-cancel.h
--- sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h 21 Mar 2006 20:54:56 -0000 1.2
+++ sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h 31 Oct 2006 17:06:35 -0000
@@ -151,3 +151,9 @@ extern int __local_multiple_threads attr
# define NO_CANCELLATION 1
#endif
+
+#ifndef __ASSEMBLER__
+# define RTLD_SINGLE_THREAD_P \
+ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
+ header.multiple_threads) == 0, 1)
+#endif
2006-10-31 Daniel Jacobowitz <dan@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h
(RTLD_SINGLE_THREAD_P): Define.
* sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Likewise.
Index: sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h,v
retrieving revision 1.1
diff -u -p -r1.1 sysdep-cancel.h
--- sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h 3 Mar 2006 01:06:48 -0000 1.1
+++ sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h 31 Oct 2006 17:34:54 -0000
@@ -181,3 +181,9 @@
# define NO_CANCELLATION 1
#endif
+
+#ifndef __ASSEMBLER__
+# define RTLD_SINGLE_THREAD_P \
+ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
+ header.multiple_threads) == 0, 1)
+#endif
Index: sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h,v
retrieving revision 1.1
diff -u -p -r1.1 sysdep-cancel.h
--- sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h 28 Mar 2005 09:21:52 -0000 1.1
+++ sysdeps/unix/sysv/linux/mips/nptl/sysdep-cancel.h 31 Oct 2006 17:34:54 -0000
@@ -168,3 +168,9 @@
# define NO_CANCELLATION 1
#endif
+
+#ifndef __ASSEMBLER__
+# define RTLD_SINGLE_THREAD_P \
+ __builtin_expect (THREAD_GETMEM (THREAD_SELF, \
+ header.multiple_threads) == 0, 1)
+#endif