aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index dc38b2f..3c13deb 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -142,6 +142,12 @@ class Position_dependent_options
as_needed() const
{ return this->as_needed_; }
+ // --whole-archive: Whether to include the entire contents of an
+ // --archive.
+ bool
+ include_whole_archive() const
+ { return this->include_whole_archive_; }
+
void
set_static_search()
{ this->do_static_search_ = true; }
@@ -158,9 +164,18 @@ class Position_dependent_options
clear_as_needed()
{ this->as_needed_ = false; }
+ void
+ set_whole_archive()
+ { this->include_whole_archive_ = true; }
+
+ void
+ clear_whole_archive()
+ { this->include_whole_archive_ = false; }
+
private:
bool do_static_search_;
bool as_needed_;
+ bool include_whole_archive_;
};
// A single file or library argument from the command line.