* defs.h (perror_with_name): Is a NORETURN function.
[deliverable/binutils-gdb.git] / ld / ldver.c
CommitLineData
15ed1567
SC
1/* Copyright (C) 1991 Free Software Foundation, Inc.
2
3This file is part of GLD, the Gnu Linker.
4
2d1a2445 5This program is free software; you can redistribute it and/or modify
15ed1567 6it under the terms of the GNU General Public License as published by
2d1a2445
PB
7the Free Software Foundation; either version 2 of the License, or
8(at your option) any later version.
15ed1567 9
2d1a2445 10This program is distributed in the hope that it will be useful,
15ed1567
SC
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
2d1a2445
PB
16along with this program; if not, write to the Free Software
17Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
15ed1567 18
15ed1567 19#include <stdio.h>
15ed1567 20#include "bfd.h"
2d1a2445 21#include "sysdep.h"
15ed1567 22
82ebe9a2 23#include "ld.h"
2d1a2445 24#include "ldver.h"
bfbdc80f 25#include "ldemul.h"
82ebe9a2 26#include "ldmain.h"
15ed1567
SC
27
28void
82ebe9a2
KR
29ldversion (noisy)
30 int noisy;
15ed1567 31{
0a1e63c4 32 fprintf(stdout,"ld version cygnus-2.5 (with BFD %s)\n", BFD_VERSION);
bfbdc80f
SC
33
34 if (noisy)
35 {
bfbdc80f
SC
36 ld_emulation_xfer_type **ptr = ld_emulations;
37
38 printf(" Supported emulations:\n");
39 while (*ptr)
40 {
41 printf(" %s \n", (*ptr)->emulation_name);
42 ptr++;
43 }
44 }
15ed1567 45}
82ebe9a2
KR
46
47void
48help ()
49{
50 printf ("\
51Usage: %s [-o output] objfile...\n\
52Options:\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\
0a1e63c4
KR
65 [-traditional-format] [-u symbol] [-V] [-v] [-version]\n\
66 [-warn-common] [-X] [-x] [-y symbol]\n\
67 [-( archives -)] [--start-group archives --end-group]");
82ebe9a2 68}
This page took 0.195014 seconds and 4 git commands to generate.