aboutsummaryrefslogtreecommitdiff
path: root/ld/ldver.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-10-02 06:04:23 +0000
committerAlan Modra <amodra@gmail.com>2001-10-02 06:04:23 +0000
commitd32820f2fa29322c86fa03a662b114ecdfd0e28e (patch)
treeb7a763a5f29633f949f691a8cc909cff5fc13e01 /ld/ldver.c
parent7997656ad8861a7a452f6c901428be0f74d6ae77 (diff)
downloadgdb-d32820f2fa29322c86fa03a662b114ecdfd0e28e.zip
gdb-d32820f2fa29322c86fa03a662b114ecdfd0e28e.tar.gz
gdb-d32820f2fa29322c86fa03a662b114ecdfd0e28e.tar.bz2
* ldver.h (ld_program_version): Remove declaration.
* lexsup.c (parse_args): Move printing of copyright message.. * ldver.c (ldversion): .. to here. Use BFD_VERSION_STRING in place of BFD_VERSION. (ld_program_version): Remove. * Makefile.am (Makefile): Depend on bfd/configure.in Run "make dep-am" * Makefile.in: Regenerate.
Diffstat (limited to 'ld/ldver.c')
-rw-r--r--ld/ldver.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/ld/ldver.c b/ld/ldver.c
index a50b548..d2a1c3f 100644
--- a/ld/ldver.c
+++ b/ld/ldver.c
@@ -1,5 +1,5 @@
/* ldver.c -- Print linker version.
- Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000
+ Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000, 2001
Free Software Foundation, Inc.
This file is part of GLD, the Gnu Linker.
@@ -30,16 +30,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "ldemul.h"
#include "ldmain.h"
-const char *ld_program_version = VERSION;
-
void
ldversion (noisy)
int noisy;
{
- fprintf (stdout, _("GNU ld version %s (with BFD %s)\n"),
- ld_program_version, BFD_VERSION);
+ /* Output for noisy == 2 is intended to follow the GNU standards. */
+ fprintf (stdout, _("GNU ld version %s\n"), BFD_VERSION_STRING);
+
+ if (noisy & 2)
+ {
+ printf (_("Copyright 2001 Free Software Foundation, Inc.\n"));
+ printf (_("\
+This program is free software; you may redistribute it under the terms of\n\
+the GNU General Public License. This program has absolutely no warranty.\n"));
+ }
- if (noisy)
+ if (noisy & 1)
{
ld_emulation_xfer_type **ptr = ld_emulations;