This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: [PowerPC] private futex build error
- From: "Ryan S. Arnold" <rsa at us dot ibm dot com>
- To: Hiroki Kaminaga <kaminaga at sm dot sony dot co dot jp>, Carlos Eduardo Seo <cseo at linux dot vnet dot ibm dot com>
- Cc: libc-help at sourceware dot org
- Date: Tue, 08 Jul 2008 11:13:04 -0500
- Subject: Re: [PowerPC] private futex build error
- Organization: IBM
- References: <20080428.112934.71108733.kaminaga@sm.sony.co.jp> <ff4da150804271938s682dda79k55f934bd5d7d1406@mail.gmail.com> <20080428.134611.59462166.kaminaga@sm.sony.co.jp>
- Reply-to: rsa at us dot ibm dot com
On Mon, 2008-04-28 at 13:46 +0900, Hiroki Kaminaga wrote:
> ---
> 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
Hiroki,
Sorry this slipped through the cracks. We've finally run into this
ourselves and my team member Carlos is going to take a look. He'll test
your patch and verify whether it is appropriate.
He'll also create a GLIBC community bugzilla.
Regards,
Ryan S. Arnold
IBM Linux Technology Center
Linux Toolchain Development