This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: [PowerPC] private futex build error
- From: Hiroki Kaminaga <kaminaga at sm dot sony dot co dot jp>
- To: ryan dot arnold at gmail dot com
- Cc: libc-help at sourceware dot org, kaminaga at sm dot sony dot co dot jp
- Date: Mon, 28 Apr 2008 13:46:11 +0900 (JST)
- Subject: Re: [PowerPC] private futex build error
- References: <20080428.112934.71108733.kaminaga@sm.sony.co.jp><ff4da150804271938s682dda79k55f934bd5d7d1406@mail.gmail.com>
> Thanks for posting to libc-help. I deal with build for PowerPC all the time
> so I should be able to take a look in the morning (i.e. about 12 hours).
Thanks for quick reply!
With the below patch, I was able to build with --enable-kernel=2.6.22 or
higher. The patch was mimiced from i386/x86_64/sh which also had private
futex feature.
Best Regards,
(Hiroki Kaminaga)
t
---
nptl/sysdeps/powerpc/tcb-offsets.sym | 2 2 + 0 - 0 !
nptl/sysdeps/powerpc/tls.h | 3 3 + 0 - 0 !
2 files changed, 5 insertions(+)
Index: b/nptl/sysdeps/powerpc/tls.h
===================================================================
--- a/nptl/sysdeps/powerpc/tls.h
+++ b/nptl/sysdeps/powerpc/tls.h
@@ -70,6 +70,9 @@ typedef struct
uintptr_t pointer_guard;
uintptr_t stack_guard;
dtv_t *dtv;
+#ifndef __ASSUME_PRIVATE_FUTEX
+ int private_futex;
+#endif
} tcbhead_t;
/* This is the size of the initial TCB. */
Index: b/nptl/sysdeps/powerpc/tcb-offsets.sym
===================================================================
--- a/nptl/sysdeps/powerpc/tcb-offsets.sym
+++ b/nptl/sysdeps/powerpc/tcb-offsets.sym
@@ -15,4 +15,6 @@ MULTIPLE_THREADS_OFFSET thread_offsetof
PID thread_offsetof (pid)
TID thread_offsetof (tid)
POINTER_GUARD (offsetof (tcbhead_t, pointer_guard) - TLS_TCB_OFFSET - sizeof (tcbhead_t))
+#ifndef __ASSUME_PRIVATE_FUTEX
PRIVATE_FUTEX_OFFSET thread_offsetof (header.private_futex)
+#endif