2009-12-21 Sriraman Tallam <tmsriram@google.com>
authorSriraman Tallam <tmsriram@google.com>
Tue, 22 Dec 2009 01:33:43 +0000 (01:33 +0000)
committerSriraman Tallam <tmsriram@google.com>
Tue, 22 Dec 2009 01:33:43 +0000 (01:33 +0000)
* options.cc (General_options::parse_version): Make -v continue and do
the link like GNU ld does.

gold/ChangeLog
gold/options.cc

index 14cce02167f4c788ad4138af899da3473fbd648d..6ae76109dc042555ec3ac911743c80583fe6596c 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-21  Sriraman Tallam  <tmsriram@google.com>
+
+       * options.cc (General_options::parse_version): Make -v continue and do
+       the link like GNU ld does.
+
 2009-12-17  Rafael Avila de Espindola  <espindola@google.com>
 
        * Makefile.am (CCFILES): Add timer.cc.
index 299a748048b03ea7cfd4481f0e38209ea9d56c5c..c83f6027cadf8973dd986c6061f446994593e0a1 100644 (file)
@@ -288,8 +288,10 @@ General_options::parse_help(const char*, const char*, Command_line*)
 void
 General_options::parse_version(const char* opt, const char*, Command_line*)
 {
-  gold::print_version(opt[0] == '-' && opt[1] == 'v');
-  ::exit(EXIT_SUCCESS);
+  bool print_short = (opt[0] == '-' && opt[1] == 'v');
+  gold::print_version(print_short);
+  if (!print_short)
+    ::exit(EXIT_SUCCESS);
 }
 
 void