From Cary Coutant: Set DF_STATIC_TLS as appropriate.

This commit is contained in:
Ian Lance Taylor
2007-12-11 23:30:52 +00:00
parent c32d85ca53
commit 535890bb64
4 changed files with 24 additions and 1 deletions

View File

@@ -226,6 +226,16 @@ class Layout
find_output_segment(elfcpp::PT type, elfcpp::Elf_Word set,
elfcpp::Elf_Word clear) const;
// Set a flag to indicate that an object file uses the static TLS model.
void
set_has_static_tls()
{ this->has_static_tls_ = true; }
// Return true if any object file uses the static TLS model.
bool
has_static_tls() const
{ return this->has_static_tls_; }
// Dump statistical information to stderr.
void
print_stats() const;
@@ -460,6 +470,8 @@ class Layout
// Whether we have seen at least one object file without an
// executable stack marker.
bool input_without_gnu_stack_note_;
// Whether we have seen an object file that uses the static TLS model.
bool has_static_tls_;
};
// This task handles writing out data in output sections which is not