00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <stdio.h>
00026 #include "bfd.h"
00027 #include "bfdver.h"
00028 #include "sysdep.h"
00029
00030 #include "ld.h"
00031 #include "ldver.h"
00032 #include "ldexp.h"
00033 #include "ldlang.h"
00034 #include "ldfile.h"
00035 #include "ldemul.h"
00036 #include "ldmain.h"
00037
00038 void
00039 ldversion (int noisy)
00040 {
00041
00042 fprintf (stdout, _("GNU ld version %s\n"), BFD_VERSION_STRING);
00043
00044 if (noisy & 2)
00045 {
00046 printf (_("Copyright 2005 Free Software Foundation, Inc.\n"));
00047 printf (_("\
00048 This program is free software; you may redistribute it under the terms of\n\
00049 the GNU General Public License. This program has absolutely no warranty.\n"));
00050 }
00051
00052 if (noisy & 1)
00053 {
00054 ld_emulation_xfer_type **ptr = ld_emulations;
00055
00056 printf (_(" Supported emulations:\n"));
00057 while (*ptr)
00058 {
00059 printf (" %s\n", (*ptr)->emulation_name);
00060 ptr++;
00061 }
00062 }
00063 }