Add gcc-4.9 libgomp symbols requiring --plt-thread-safe for power7
authorAlan Modra <amodra@gmail.com>
Tue, 21 Oct 2014 06:36:01 +0000 (17:06 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 28 Oct 2014 06:23:13 +0000 (16:53 +1030)
commit334efb9a97018d8b2f508e5c22e5acb7b824cc76
tree3f3d3bcdfec3e8125803c518e489da55023139fa
parent35ac6b6a54f9be85dd9794fa6645fac3631e510b
Add gcc-4.9 libgomp symbols requiring --plt-thread-safe for power7

powerpc64 ld builds plt call stubs with a read barrier to provide
thread safety on lazy plt updates, necessary on multi-threaded apps
with power7 or later weakly ordered memory.  gcc-4.9 libgomp
introduced more functions that could call pthread_create, which means
we have more functions that if referenced in an executable should
cause a default of --plt-thread-safe.

bfd/
* elf64-ppc.c (ppc64_elf_size_stubs): Add gcc-4.9 libgomp functions
to thread_starter.
gold/
* powerpc.cc (do_relax): Add gcc-4.9 libgomp functions to
thread_starter.
bfd/ChangeLog
bfd/elf64-ppc.c
gold/ChangeLog
gold/powerpc.cc