diff options
author | Alan Modra <amodra@gmail.com> | 2013-01-15 06:13:26 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-01-15 06:13:26 +0000 |
commit | e24587436538578f3ee2dc671a8a619dd7a3f0bd (patch) | |
tree | 15f32d99a1c9191ab4b8432adc32e3a7f38f48fd /bfd | |
parent | 4d490e4206b627b899f9791efbc3e602b2cb4c5f (diff) | |
download | gdb-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')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-ppc.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c296b46..7aeba6f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2013-01-15 Alan Modra <amodra@gmail.com> + + * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to + plt-thread-safe. + 2013-01-14 Alan Modra <amodra@gmail.com> PR binutils/14813 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++ */ |