diff options
author | Ian Lance Taylor <iant@google.com> | 2007-12-11 23:30:52 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-12-11 23:30:52 +0000 |
commit | 535890bb6466aa82b46ea191a37e75b8936aa913 (patch) | |
tree | 9c497b427e90f5be33a560f7048c1b6187759452 /gold/layout.h | |
parent | c32d85ca537bec630d3da979a3d1d6e14553e42c (diff) | |
download | gdb-535890bb6466aa82b46ea191a37e75b8936aa913.zip gdb-535890bb6466aa82b46ea191a37e75b8936aa913.tar.gz gdb-535890bb6466aa82b46ea191a37e75b8936aa913.tar.bz2 |
From Cary Coutant: Set DF_STATIC_TLS as appropriate.
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 |