Fix internal error when applying TLSDESC relocations with no TLS segment.
authorCary Coutant <ccoutant@gmail.com>
Tue, 12 Jan 2016 07:57:44 +0000 (23:57 -0800)
committerCary Coutant <ccoutant@gmail.com>
Tue, 12 Jan 2016 07:58:28 +0000 (23:58 -0800)
commitd21f123b0ead1806416cf0dafae12bec4cca8920
treee7bb3b97fd199b76de698f77e923cda8bb5ba29c
parentb36d953bced0a4fecdde1823abac70ed7038ee95
Fix internal error when applying TLSDESC relocations with no TLS segment.

gold/
PR gold/19353
* aarch64.cc (Target_aarch64::relocate_tls): Don't insist that
we have a TLS segment for GD-to-IE optimization.
* i386.cc (Target_i386::tls_gd_to_ie): Remove tls_segment parameter.
Adjust all calls.
(Target_i386::tls_desc_gd_to_ie): Likewise.
(Target_i386::relocate_tls): Don't insist that we have a TLS segment
for TLSDESC GD-to-IE optimizations.
* x86_64.cc (Target_x86_64::tls_gd_to_ie): Remove tls_segment parameter.
Adjust all calls.
(Target_x86_64::tls_desc_gd_to_ie): Likewise.
(Target_x86_64::relocate_tls): Don't insist that we have a TLS segment
for TLSDESC GD-to-IE optimizations.
gold/ChangeLog
gold/aarch64.cc
gold/i386.cc
gold/x86_64.cc