From 80d6637fd2862a4eef1a581a2ffbb75cb2de8398 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 31 Oct 2006 17:39:02 +0000 Subject: [PATCH] * sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h (RTLD_SINGLE_THREAD_P): Define. --- ChangeLog.arm | 7 ++++++- sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog.arm b/ChangeLog.arm index 48c1a74a63..88c3c873a3 100644 --- a/ChangeLog.arm +++ b/ChangeLog.arm @@ -1,4 +1,9 @@ -2006-10-21 Joseph S. Myers +2006-10-31 Daniel Jacobowitz + + * sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h + (RTLD_SINGLE_THREAD_P): Define. + +2006-10-31 Joseph S. Myers * sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h (DOCARGS_6): Change ".pad #20" to ".pad #16". diff --git a/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h b/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h index aa1cfea728..73912d5174 100644 --- a/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h +++ b/sysdeps/unix/sysv/linux/arm/eabi/nptl/sysdep-cancel.h @@ -151,3 +151,9 @@ extern int __local_multiple_threads attribute_hidden; # define NO_CANCELLATION 1 #endif + +#ifndef __ASSEMBLER__ +# define RTLD_SINGLE_THREAD_P \ + __builtin_expect (THREAD_GETMEM (THREAD_SELF, \ + header.multiple_threads) == 0, 1) +#endif