From: Sriraman Tallam Date: Tue, 22 Dec 2009 01:33:43 +0000 (+0000) Subject: 2009-12-21 Sriraman Tallam X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=329ca2b10fdb7a8a2fb4d7aae88263648444e521;p=binutils-gdb.git 2009-12-21 Sriraman Tallam * options.cc (General_options::parse_version): Make -v continue and do the link like GNU ld does. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 14cce02167f..6ae76109dc0 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2009-12-21 Sriraman Tallam + + * options.cc (General_options::parse_version): Make -v continue and do + the link like GNU ld does. + 2009-12-17 Rafael Avila de Espindola * Makefile.am (CCFILES): Add timer.cc. diff --git a/gold/options.cc b/gold/options.cc index 299a748048b..c83f6027cad 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -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