diff options
author | Ian Lance Taylor <iant@google.com> | 2007-08-21 23:37:56 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-08-21 23:37:56 +0000 |
commit | 4973341a7d985b4d211b0b2ce14d95e2c05dbd37 (patch) | |
tree | f9e70df85ba58125e976bc2377bcdcf3d463bd51 /gold/options.h | |
parent | 72a2eed757d46b207f6e127dcc7c5acf848f5872 (diff) | |
download | gdb-4973341a7d985b4d211b0b2ce14d95e2c05dbd37.zip gdb-4973341a7d985b4d211b0b2ce14d95e2c05dbd37.tar.gz gdb-4973341a7d985b4d211b0b2ce14d95e2c05dbd37.tar.bz2 |
Implement --whole-archive.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 15 |
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. |