This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [GOLD PATCH]: More BFD linker compat options.


From: David Miller <davem@davemloft.net>
Date: Thu, 17 Apr 2008 02:48:35 -0700 (PDT)

> 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.

Sorry, I made a mistake.  -V needs to continue and perform
the link instead of exiting.

Here is a fixed version.

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.

Index: options.cc
===================================================================
RCS file: /cvs/src/src/gold/options.cc,v
retrieving revision 1.69
diff -u -p -r1.69 options.cc
--- options.cc	11 Apr 2008 20:28:34 -0000	1.69
+++ options.cc	17 Apr 2008 10:31:24 -0000
@@ -263,6 +263,19 @@ General_options::parse_version(const cha
 }
 
 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);
Index: options.h
===================================================================
RCS file: /cvs/src/src/gold/options.h,v
retrieving revision 1.70
diff -u -p -r1.70 options.h
--- options.h	16 Apr 2008 23:21:01 -0000	1.70
+++ options.h	17 Apr 2008 10:31:24 -0000
@@ -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);
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]