forked from Imagelibrary/binutils-gdb
From Cary Coutant: Set DF_STATIC_TLS as appropriate.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user