[GOLD] PowerPC64 pc-relative TLS support
authorAlan Modra <amodra@gmail.com>
Thu, 1 Aug 2019 02:20:55 +0000 (11:50 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 2 Aug 2019 09:11:34 +0000 (18:41 +0930)
commit89c52ae3a20e8d84a250095781c1e022af542b3f
treec93ddd916ff0d10ab87a232627575c9eb6f553e9
parent6a010cf67a96adcaf80c74f926df6b42ce13e7df
[GOLD] PowerPC64 pc-relative TLS support

Gold version of git commit c213164ad2.

elfcpp/
* powerpc.h (R_PPC64_TPREL34, R_PPC64_DTPREL34),
(R_PPC64_GOT_TLSGD34, R_PPC64_GOT_TLSLD34),
(R_PPC64_GOT_TPREL34, R_PPC64_GOT_DTPREL34): Define.
gold/
* powerpc.cc (Target_powerpc::Scan::get_reference_flags): Set
flags for new relocations, and some missing older relocs.
(Target_powerpc::Scan::local): Handle new pcrel tls relocs.
Call set_has_static_tls for tprel relocs.
(Target_powerpc::Scan::global): Likewise.
(Target_powerpc::Relocate::relocate): Handle new pcrel tls relocs.
elfcpp/ChangeLog
elfcpp/powerpc.h
gold/ChangeLog
gold/powerpc.cc