diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-21 07:34:51 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-21 07:34:51 +0000 |
commit | 80576242ab144a06ef28d698a432eea831fdc5c0 (patch) | |
tree | 9d259fbb5f0cebe1ca3ab292469256736328af69 /gold/i386.cc | |
parent | c6bac49b54ed8b91aa74c83f6593a38b63aedb7a (diff) | |
download | gdb-80576242ab144a06ef28d698a432eea831fdc5c0.zip gdb-80576242ab144a06ef28d698a432eea831fdc5c0.tar.gz gdb-80576242ab144a06ef28d698a432eea831fdc5c0.tar.bz2 |
Initialize count_ field, tweak parameters testing.
Diffstat (limited to 'gold/i386.cc')
-rw-r--r-- | gold/i386.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/i386.cc b/gold/i386.cc index 8be178c..bb47e88 100644 --- a/gold/i386.cc +++ b/gold/i386.cc @@ -338,7 +338,7 @@ class Output_data_plt_i386 : public Output_section_data Output_data_plt_i386::Output_data_plt_i386(Layout* layout, Output_data_space* got_plt) - : Output_section_data(4), got_plt_(got_plt) + : Output_section_data(4), got_plt_(got_plt), count_(0) { this->rel_ = new Reloc_section(); layout->add_output_section_data(".rel.plt", elfcpp::SHT_REL, @@ -739,8 +739,8 @@ Target_i386::Scan::local(const General_options&, case elfcpp::R_386_TLS_GOTDESC: case elfcpp::R_386_TLS_DESC_CALL: { - bool output_is_executable = parameters->output_is_executable(); - r_type = Target_i386::optimize_tls_reloc(output_is_executable, + bool output_is_shared = parameters->output_is_shared(); + r_type = Target_i386::optimize_tls_reloc(!output_is_shared, r_type); switch (r_type) { @@ -748,7 +748,7 @@ Target_i386::Scan::local(const General_options&, case elfcpp::R_386_TLS_LE_32: // FIXME: If generating a shared object, we need to copy // this relocation into the object. - gold_assert(output_is_executable); + gold_assert(!output_is_shared); break; case elfcpp::R_386_TLS_IE: |