* Converted conditional-trap MIPS opcodes to extra-operand variety also.
[binutils-gdb.git] / ld / ldver.c
blob8751e43ee22bbea034dcd325819fa2b797314c9c
1 /* Copyright (C) 1991 Free Software Foundation, Inc.
3 This file is part of GLD, the Gnu Linker.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19 #include <stdio.h>
20 #include "bfd.h"
21 #include "sysdep.h"
23 #include "ld.h"
24 #include "ldver.h"
25 #include "ldemul.h"
26 #include "ldmain.h"
28 void
29 ldversion (noisy)
30 int noisy;
32 fprintf(stdout,"ld version cygnus-2.5 (with BFD %s)\n", BFD_VERSION);
34 if (noisy)
36 ld_emulation_xfer_type **ptr = ld_emulations;
38 printf(" Supported emulations:\n");
39 while (*ptr)
41 printf(" %s \n", (*ptr)->emulation_name);
42 ptr++;
47 void
48 help ()
50 printf ("\
51 Usage: %s [-o output] objfile...\n\
52 Options:\n\
53 [-A architecture] [-b input-format] [-Bstatic]\n\
54 [-c MRI-commandfile] [-d | -dc | -dp]\n\
55 [-defsym symbol=expression] [-e entry] [-F] [-Fformat]\n",
56 program_name);
57 puts ("\
58 [-format input-format] [-g] [-G size] [-help] [-i]\n\
59 [-l archive] [-L searchdir] [-M] [-Map mapfile]\n\
60 [-m emulation] [-N | -n] [-noinhibit-exec]\n\
61 [-oformat output-format] [-R filename] [-relax]");
62 puts ("\
63 [-r | -Ur] [-S] [-s] [-sort-common] [-T commandfile]\n\
64 [-Ttext textorg] [-Tdata dataorg] [-Tbss bssorg] [-t]\n\
65 [-traditional-format] [-u symbol] [-V] [-v] [-version]\n\
66 [-warn-common] [-X] [-x] [-y symbol]\n\
67 [-( archives -)] [--start-group archives --end-group]");