summaryrefslogtreecommitdiffstats
path: root/gold/options.cc
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2008-04-17 20:23:59 +0000
committerDavid S. Miller <davem@redhat.com>2008-04-17 20:23:59 +0000
commitb5be4a7c8c504659d73c46741f020c45c9f861d0 (patch)
tree0e57c8c8a79640d456b5dbf161082f33bb7cd5fa /gold/options.cc
parent4584e32ea409bd2b80cd4aba8635de091a47da4b (diff)
downloadppe42-binutils-b5be4a7c8c504659d73c46741f020c45c9f861d0.tar.gz
ppe42-binutils-b5be4a7c8c504659d73c46741f020c45c9f861d0.zip
* options.cc (General_options::parse_V): New function.
* options.h: Add entries for -V and -Qy.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc
index f2fb56094c..2b4978accd 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -263,6 +263,19 @@ General_options::parse_version(const char* opt, const char*, Command_line*)
}
void
+General_options::parse_V(const char*, const char*, Command_line*)
+{
+ gold::print_version(true);
+ printf(_(" Supported targets:\n"));
+ std::vector<const char*> supported_names;
+ gold::supported_target_names(&supported_names);
+ for (std::vector<const char*>::const_iterator p = supported_names.begin();
+ p != supported_names.end();
+ ++p)
+ printf(" %s\n", *p);
+}
+
+void
General_options::parse_Bstatic(const char*, const char*, Command_line*)
{
this->set_Bdynamic(false);
OpenPOWER on IntegriCloud