aboutsummaryrefslogtreecommitdiff
path: root/gold/i386.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-13 00:15:07 +0000
committerIan Lance Taylor <iant@google.com>2007-10-13 00:15:07 +0000
commite041f13d5ac555c7485633dcd8288ebb6a67bf53 (patch)
treee3c85770ce6df686d71d508c89eda3a92144c807 /gold/i386.cc
parentc187492465e6fd60ebf2f4710944fa7b6a679a02 (diff)
downloadgdb-e041f13d5ac555c7485633dcd8288ebb6a67bf53.zip
gdb-e041f13d5ac555c7485633dcd8288ebb6a67bf53.tar.gz
gdb-e041f13d5ac555c7485633dcd8288ebb6a67bf53.tar.bz2
From Craig Silverstein: use tls.h in x86_64.cc.
Diffstat (limited to 'gold/i386.cc')
-rw-r--r--gold/i386.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/gold/i386.cc b/gold/i386.cc
index 7645b32..fa564c4 100644
--- a/gold/i386.cc
+++ b/gold/i386.cc
@@ -45,6 +45,9 @@ using namespace gold;
class Output_data_plt_i386;
// The i386 target class.
+// TLS info comes from
+// http://people.redhat.com/drepper/tls.pdf
+// http://www.lsd.ic.unicamp.br/~oliva/writeups/TLS/RFC-TLSDESC-x86.txt
class Target_i386 : public Sized_target<32, false>
{
@@ -170,7 +173,7 @@ class Target_i386 : public Sized_target<32, false>
unsigned char* view,
off_t view_size);
- // Do a TLS Global-Dynamic to Local-Exec transition.
+ // Do a TLS General-Dynamic to Local-Exec transition.
inline void
tls_gd_to_le(const Relocate_info<32, false>*, size_t relnum,
Output_segment* tls_segment,
@@ -678,7 +681,7 @@ Target_i386::optimize_tls_reloc(bool is_final, int r_type)
case elfcpp::R_386_TLS_GD:
case elfcpp::R_386_TLS_GOTDESC:
case elfcpp::R_386_TLS_DESC_CALL:
- // These are Global-Dynamic which permits fully general TLS
+ // These are General-Dynamic which permits fully general TLS
// access. Since we know that we are generating an executable,
// we can convert this to Initial-Exec. If we also know that
// this is a local symbol, we can further switch to Local-Exec.
@@ -1515,7 +1518,7 @@ Target_i386::Relocate::tls_ie_to_le(const Relocate_info<32, false>* relinfo,
Relocate_functions<32, false>::rel32(view, value);
}
-// Do a relocation in which we convert a TLS Global-Dynamic to a
+// Do a relocation in which we convert a TLS General-Dynamic to a
// Local-Exec.
inline void