aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-01-15 06:13:26 +0000
committerAlan Modra <amodra@gmail.com>2013-01-15 06:13:26 +0000
commite24587436538578f3ee2dc671a8a619dd7a3f0bd (patch)
tree15f32d99a1c9191ab4b8432adc32e3a7f38f48fd /bfd/elf64-ppc.c
parent4d490e4206b627b899f9791efbc3e602b2cb4c5f (diff)
downloadgdb-e24587436538578f3ee2dc671a8a619dd7a3f0bd.zip
gdb-e24587436538578f3ee2dc671a8a619dd7a3f0bd.tar.gz
gdb-e24587436538578f3ee2dc671a8a619dd7a3f0bd.tar.bz2
bfd/
* elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to plt-thread-safe. gold/ * powerpc.cc (Target_powerpc::do_relax): Default shared libs to plt-thread-safe. ld/testsuite/ * ld-powerpc/tlsso.d: Adjust for plt-thread-safe stubs. * ld-powerpc/tlsso.g: Likewise. * ld-powerpc/tlsso.r: Likewise. * ld-powerpc/tlstocso.d: Likewise. * ld-powerpc/tlstocso.g: Likewise.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 151c0ce..9ce20af 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -11334,9 +11334,11 @@ ppc64_elf_size_stubs (struct bfd_link_info *info, bfd_signed_vma group_size,
htab->plt_static_chain = plt_static_chain;
htab->plt_stub_align = plt_stub_align;
+ if (plt_thread_safe == -1 && !info->executable)
+ plt_thread_safe = 1;
if (plt_thread_safe == -1)
{
- const char *const thread_starter[] =
+ static const char *const thread_starter[] =
{
"pthread_create",
/* libstdc++ */