From 535890bb6466aa82b46ea191a37e75b8936aa913 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 11 Dec 2007 23:30:52 +0000 Subject: From Cary Coutant: Set DF_STATIC_TLS as appropriate. --- gold/layout.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gold/layout.h') 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 -- cgit v1.1