gdb/testsuite/gdb.threads: Ensure TLS tests link against pthreads.
authorWill Newton <willnewton@sourceware.org>
Thu, 18 Jul 2013 15:49:22 +0000 (15:49 +0000)
committerWill Newton <willnewton@sourceware.org>
Thu, 18 Jul 2013 15:49:22 +0000 (15:49 +0000)
commit623cc2854011a4ffa83755d7ce9a9e078fa7ec80
tree29deb49c7bd2c05038c9e1654516c4591f44bf03
parent39b07303826d3c6c4045b41c62541611d1f93729
gdb/testsuite/gdb.threads: Ensure TLS tests link against pthreads.

On Ubuntu by default the compiler passes --as-needed to ld which
means no DT_NEEDED entry is added for libpthread when building
the TLS tests. This causes the test to fail as libpthread is
required to look up TLS variables. Add calls to pthread_testcancel
to make sure libpthread gets linked.

gdb/testsuite/ChangeLog:

2013-07-18  Will Newton  <will.newton@linaro.org>

* gdb.threads/tls-nodebug.c: Call pthread_testcancel
to ensure the test is linked against pthreads.
* gdb.threads/tls-var-main.c: Likewise.
* gdb.threads/tls-shared.c: Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/tls-nodebug.c
gdb/testsuite/gdb.threads/tls-shared.c
gdb/testsuite/gdb.threads/tls-var-main.c
This page took 0.025517 seconds and 4 git commands to generate.