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: New ELF linker code added to GNU binutils


"Joseph S. Myers" <joseph@codesourcery.com> writes:

> The --help output doesn't include the bug-reporting URL (REPORT_BUGS_TO in 
> bfdver.h).

I committed this patch to fix this.

Ian


2008-03-25  Ian Lance Taylor  <iant@google.com>

	* options.cc: Include "../bfd/bfdver.h".
	(options::help): Print bug reporting address.


Index: options.cc
===================================================================
RCS file: /cvs/src/src/gold/options.cc,v
retrieving revision 1.65
diff -p -u -r1.65 options.cc
--- options.cc	25 Mar 2008 21:39:01 -0000	1.65
+++ options.cc	25 Mar 2008 23:47:47 -0000
@@ -29,6 +29,7 @@
 #include "filenames.h"
 #include "libiberty.h"
 #include "demangle.h"
+#include "../bfd/bfdver.h"
 
 #include "debug.h"
 #include "script.h"
@@ -153,6 +154,11 @@ help()
        ++p)
     printf(" %s", *p);
   printf("\n");
+
+  // REPORT_BUGS_TO is defined in bfd/bfdver.h.
+  const char* report = REPORT_BUGS_TO;
+  if (*report != '\0')
+    printf(_("Report bugs to %s\n"), report);
 }
 
 // For bool, arg will be NULL (boolean options take no argument);

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