* options.cc (General_options::parse_V): New function.
authorDavid S. Miller <davem@redhat.com>
Thu, 17 Apr 2008 20:23:59 +0000 (20:23 +0000)
committerDavid S. Miller <davem@redhat.com>
Thu, 17 Apr 2008 20:23:59 +0000 (20:23 +0000)
* options.h: Add entries for -V and -Qy.

gold/ChangeLog
gold/options.cc
gold/options.h

index d906ed484fde8ad261ab8235a508c5bcc3dec1dd..3a8aba56e6b752358ce560fca8ed429a1d722f63 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-17  David S. Miller  <davem@davemloft.net>
+
+       * options.cc (General_options::parse_V): New function.
+       * options.h: Add entries for -V and -Qy.
+
 2008-04-17  Ian Lance Taylor  <iant@google.com>
 
        * common.cc (Symbol_table::allocate_commons): Remove options
index f2fb56094c82afcbb40a0abafa97eb47f532a3d8..2b4978accd9cbf8c4e70600396e50fb28c60061e 100644 (file)
@@ -262,6 +262,19 @@ General_options::parse_version(const char* opt, const char*, Command_line*)
   ::exit(EXIT_SUCCESS);
 }
 
+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*)
 {
index 2c71fae936ad623b17b170653e571b514afb8726..100e53b22f65dac39135ea815946ed5fb75652bb 100644 (file)
@@ -450,6 +450,8 @@ class General_options
                  N_("Report usage information"), NULL);
   DEFINE_special(version, options::TWO_DASHES, 'v',
                  N_("Report version information"), NULL);
+  DEFINE_special(V, options::EXACTLY_ONE_DASH, '\0',
+                 N_("Report version and target information"), NULL);
 
   // These options are sorted approximately so that for each letter in
   // the alphabet, we show the option whose shortname is that letter
@@ -576,6 +578,9 @@ class General_options
   DEFINE_string(oformat, options::EXACTLY_TWO_DASHES, '\0', "elf",
                N_("Set output format"), N_("[binary]"));
 
+  DEFINE_bool(Qy, options::EXACTLY_ONE_DASH, '\0', false,
+             N_("Ignored for SVR4 compatibility"), NULL);
+
   DEFINE_bool(emit_relocs, options::TWO_DASHES, 'q', false,
               N_("Generate relocations in output"), NULL);
 
This page took 0.029793 seconds and 4 git commands to generate.