David Mosberger's fixes for cross compiling gprof.
[deliverable/binutils-gdb.git] / ld / ldver.c
index 49fcfd1a67bbb6267e37aa6e9e15d96b4c854461..a50b5480c49441043f310a5a4d1ae67f6871508f 100644 (file)
@@ -1,4 +1,6 @@
-/* Copyright (C) 1991 Free Software Foundation, Inc.
+/* ldver.c -- Print linker version.
+   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000
+   Free Software Foundation, Inc.
 
 This file is part of GLD, the Gnu Linker.
 
@@ -14,7 +16,7 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include <stdio.h>
 #include "bfd.h"
@@ -22,46 +24,30 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include "ld.h"
 #include "ldver.h"
+#include "ldexp.h"
+#include "ldlang.h"
+#include "ldfile.h"
 #include "ldemul.h"
 #include "ldmain.h"
 
+const char *ld_program_version = VERSION;
+
 void
 ldversion (noisy)
      int noisy;
 {
-  fprintf(stdout,"ld version cygnus-2.4.1 (with BFD %s)\n", BFD_VERSION);
+  fprintf (stdout, _("GNU ld version %s (with BFD %s)\n"),
+          ld_program_version, BFD_VERSION);
 
-  if (noisy) 
-  {
-    ld_emulation_xfer_type **ptr = ld_emulations;
-    
-    printf("  Supported emulations:\n");
-    while (*ptr) 
+  if (noisy)
     {
-      printf("   %s \n", (*ptr)->emulation_name);
-      ptr++;
+      ld_emulation_xfer_type **ptr = ld_emulations;
+
+      printf (_("  Supported emulations:\n"));
+      while (*ptr)
+       {
+         printf ("   %s\n", (*ptr)->emulation_name);
+         ptr++;
+       }
     }
-  }
-}
-
-void
-help ()
-{
-  printf ("\
-Usage: %s [-o output] objfile...\n\
-Options:\n\
-       [-A architecture] [-b input-format] [-Bstatic]\n\
-       [-c MRI-commandfile] [-d | -dc | -dp]\n\
-       [-defsym symbol=expression] [-e entry] [-F] [-Fformat]\n",
-         program_name);
-  puts ("\
-       [-format input-format] [-g] [-G size] [-help] [-i]\n\
-       [-l archive] [-L searchdir] [-M] [-Map mapfile]\n\
-       [-m emulation] [-N | -n] [-noinhibit-exec]\n\
-       [-oformat output-format] [-R filename] [-relax]");
-  puts ("\
-       [-r | -Ur] [-S] [-s] [-sort-common] [-T commandfile]\n\
-       [-Ttext textorg] [-Tdata dataorg] [-Tbss bssorg] [-t]\n\
-       [-u symbol] [-V] [-v] [-version] [-warn-common]\n\
-       [-X] [-x] [-y symbol]");
 }
This page took 0.024061 seconds and 4 git commands to generate.