* i386.cc (class Target_i386): Add got_tlsdesc_ field.
authorIan Lance Taylor <ian@airs.com>
Mon, 2 Aug 2010 10:07:03 +0000 (10:07 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 2 Aug 2010 10:07:03 +0000 (10:07 +0000)
commita8df5856e2174b21c341d926068f195624d5d089
treeac21be63f1586266d08e42e8052c8f0c1f0be848
parentb27423bb543a28c11bdfb63dc5ea978a4a637f67
* i386.cc (class Target_i386): Add got_tlsdesc_ field.
(Target_i386::Target_i386):: Initialize got_tlsdesc_.
(Target_i386::got_tlsdesc_section): New function.
(Target_i386::got_section): Create space for GOT entries for
TLSDESC relocations.
(Target_i386::Scan::local): Use TLSDESC GOT for unoptimized
R_386_TLS_GOTDESC.
(Target_i386::Scan::global): Likewise.
(Target_i386::Relocate::relocate_tls): Adjust GOT offset when
using TLSDESC GOT.
* x86_64.cc (class Target_x86_64): Add got_tlsdesc_ field.
(Target_x86_64::Target_x86_64):: Initialize got_tlsdesc_.
(Target_x86_64::got_tlsdesc_section): New function.
(Target_x86_64::got_section): Create space for GOT entries for
TLSDESC relocations.
(Target_x86_64::Scan::local): Use TLSDESC GOT for unoptimized
R_386_TLS_GOTDESC.
(Target_x86_64::Scan::global): Likewise.
(Target_x86_64::Relocate::relocate_tls): Adjust GOT offset when
using TLSDESC GOT.
gold/ChangeLog
gold/i386.cc
gold/x86_64.cc