blob: 4ad1f2547436f7c917fef813eee0b546d812b934 [file] [log] [blame]
Brian Gaeke407d7c82004-06-02 20:55:52 +00001=pod
2
3=head1 NAME
4
5llvm-link - LLVM linker
6
7=head1 SYNOPSIS
8
Misha Brukmanc08937a2004-07-02 16:06:19 +00009B<llvm-link> [I<options>] I<filename ...>
Brian Gaeke407d7c82004-06-02 20:55:52 +000010
11=head1 DESCRIPTION
12
13The B<llvm-link> command takes several LLVM bytecode files and links them
14together into a single LLVM bytecode file. It writes the output file to
15standard output, unless the B<-o> option is used to specify a filename.
16
17The B<llvm-link> command attempts to load the input files from the current
18directory. If that fails, it looks for each file in each of the directories
19specified by the B<-L> options on the command line. The library search paths
20are global; each one is searched for every input file if necessary. The
21directories are searched in the order they were specified on the command line.
22
23=head1 OPTIONS
24
25=over
26
27=item B<-L> F<directory>
28
29Add the specified F<directory> to the library search path. When looking for
30libraries, B<llvm-link> will look in pathname for libraries. This option can be
31specified multiple times; B<llvm-link> will search inside these directories in
32the order in which they were specified on the command line.
33
34=item B<-f>
35
36Overwrite output files. By default, B<llvm-link> will not overwrite an output
37file if it alreadys exists.
38
39=item B<-o> F<filename>
40
41Specify the output file name. If F<filename> is C<->, then B<llvm-link> will
42write its output to standard output.
43
44=item B<-d>
45
46If specified, B<llvm-link> prints a human-readable version of the output
47bytecode file to standard error.
48
49=item B<--help>
50
51Print a summary of command line options.
52
53=item B<-v>
54
55Verbose mode. Print information about what B<llvm-link> is doing. This
56typically includes a message for each bytecode file linked in and for each
57library found.
58
59=back
60
61=head1 EXIT STATUS
62
63If B<llvm-link> succeeds, it will exit with 0. Otherwise, if an error
64occurs, it will exit with a non-zero value.
65
66=head1 SEE ALSO
67
Misha Brukman55157ff2004-11-15 20:32:58 +000068L<gccld|gccld>
Brian Gaeke407d7c82004-06-02 20:55:52 +000069
70=head1 AUTHORS
71
72Maintained by the LLVM Team (L<http://llvm.cs.uiuc.edu>).
73
74=cut
75