aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-08-21 23:37:56 +0000
committerIan Lance Taylor <iant@google.com>2007-08-21 23:37:56 +0000
commit4973341a7d985b4d211b0b2ce14d95e2c05dbd37 (patch)
treef9e70df85ba58125e976bc2377bcdcf3d463bd51 /gold/options.cc
parent72a2eed757d46b207f6e127dcc7c5acf848f5872 (diff)
downloadgdb-4973341a7d985b4d211b0b2ce14d95e2c05dbd37.zip
gdb-4973341a7d985b4d211b0b2ce14d95e2c05dbd37.tar.gz
gdb-4973341a7d985b4d211b0b2ce14d95e2c05dbd37.tar.bz2
Implement --whole-archive.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 36e0044..0b858a2 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -257,6 +257,14 @@ options::Command_line_options::options[] =
POSDEP_NOARG('\0', "no-as-needed",
N_("Always DT_NEEDED for following dynamic libs (default)"),
NULL, TWO_DASHES, &Position_dependent_options::clear_as_needed),
+ POSDEP_NOARG('\0', "whole-archive",
+ N_("Include all archive contents"),
+ NULL, TWO_DASHES,
+ &Position_dependent_options::set_whole_archive),
+ POSDEP_NOARG('\0', "no-whole-archive",
+ N_("Include only needed archive contents"),
+ NULL, TWO_DASHES,
+ &Position_dependent_options::clear_whole_archive),
SPECIAL('\0', "help", N_("Report usage information"), NULL,
TWO_DASHES, &help)
};
@@ -271,6 +279,7 @@ General_options::General_options()
search_path_(),
output_file_name_("a.out"),
is_relocatable_(false),
+ rpath_(),
is_shared_(false),
is_static_(false)
{
@@ -279,7 +288,9 @@ General_options::General_options()
// The default values for the position dependent options.
Position_dependent_options::Position_dependent_options()
- : do_static_search_(false)
+ : do_static_search_(false),
+ as_needed_(false),
+ include_whole_archive_(false)
{
}