From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v1] valgrind: enabls tls support
Date: Mon, 2 Nov 2015 18:01:12 +0100 [thread overview]
Message-ID: <20151102180112.0bb05227@gmx.net> (raw)
In-Reply-To: <20151102153309.7c86ee73@free-electrons.com>
Hello Thomas,
On Mon, 2 Nov 2015 15:33:09 +0100, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:
> Dear Peter Seiderer,
>
> On Mon, 2 Nov 2015 00:25:26 +0100, Peter Seiderer wrote:
> > Tested with example program from [1] with qemu_x86_64.
> >
> > [1] http://valgrind.10908.n7.nabble.com/Thread-local-storage-TLS-support-td40815.html
> >
> > Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> > ---
> > package/valgrind/valgrind.mk | 8 +++++++-
> > 1 file changed, 7 insertions(+), 1 deletion(-)
>
> I've applied your patch (after fixing the typo in the commit title).
>
Many thanks for fixing it...
> However, it is not a fully correct solution: BR2_GCC_ENABLE_TLS is only
> valid for internal toolchains. For external toolchains, it will always
> be false, so you will never have TLS support enabled for external
> toolchains. I think it would really be easier if Valgrind had a
I can live with it.... ;-)
> compile-time way of determining whether TLS support is available or
> not, because it is the only package for which we need to know if TLS
> support is available or not.
>
> I've nonetheless applied your patch because it doesn't make things
> really worse than they are. But I would really prefer if you could do
> some research at adjusting valgrind configure.ac to check TLS
> availability at compile time.
>
O.k, I will take a look...
Regards,
Peter
> Generally speaking, I think we should drop BR2_GCC_ENABLE_TLS
> altogether, and simply enable TLS whenever we have NPTL threads being
> used.
>
> Best regards,
>
> Thomas
prev parent reply other threads:[~2015-11-02 17:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-01 23:25 [Buildroot] [PATCH v1] valgrind: enabls tls support Peter Seiderer
2015-11-02 14:33 ` Thomas Petazzoni
2015-11-02 17:01 ` Peter Seiderer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151102180112.0bb05227@gmx.net \
--to=ps.report@gmx.net \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox