aboutsummaryrefslogtreecommitdiff
path: root/gold/i386.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2009-01-30 00:21:46 +0000
committerCary Coutant <ccoutant@google.com>2009-01-30 00:21:46 +0000
commit5efc7cd2d630cf8acc716a45d0cb1025096fd308 (patch)
tree45bd86760f7f0f38903f02e0266fae68693434f3 /gold/i386.cc
parent55b0d6e3cfd9d502e161345b2826f662bdff9c83 (diff)
downloadgdb-5efc7cd2d630cf8acc716a45d0cb1025096fd308.zip
gdb-5efc7cd2d630cf8acc716a45d0cb1025096fd308.tar.gz
gdb-5efc7cd2d630cf8acc716a45d0cb1025096fd308.tar.bz2
* i386.cc (Target_i386::Relocate::relocate): Recognize non-PIC calls
to __tls_get_addr. * x86_64.cc (Target_x86_64::Relocate::relocate): Likewise. * ChangeLog: Fixed typo in previous ChangeLog entry (version 1.9).
Diffstat (limited to 'gold/i386.cc')
-rw-r--r--gold/i386.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/i386.cc b/gold/i386.cc
index 3779d4e..e033d34 100644
--- a/gold/i386.cc
+++ b/gold/i386.cc
@@ -1633,7 +1633,8 @@ Target_i386::Relocate::relocate(const Relocate_info<32, false>* relinfo,
{
if (this->skip_call_tls_get_addr_)
{
- if (r_type != elfcpp::R_386_PLT32
+ if ((r_type != elfcpp::R_386_PLT32
+ && r_type != elfcpp::R_386_PC32)
|| gsym == NULL
|| strcmp(gsym->name(), "___tls_get_addr") != 0)
gold_error_at_location(relinfo, relnum, rel.get_r_offset(),