diff options
Diffstat (limited to 'gold/layout.h')
-rw-r--r-- | gold/layout.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gold/layout.h b/gold/layout.h index 12f703f..37a70db 100644 --- a/gold/layout.h +++ b/gold/layout.h @@ -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 |