xref: /openbsd-src/gnu/llvm/llvm/docs/CommandGuide/llvm-lib.rst (revision d2c5a4743fb945f45b034a3a830a96f7e1bc695d)
1llvm-lib - LLVM lib.exe compatible library tool
2===============================================
3
4.. program:: llvm-lib
5
6SYNOPSIS
7--------
8
9**llvm-lib** [/libpath:<path>] [/out:<output>] [/llvmlibthin]
10[/ignore] [/machine] [/nologo] [files...]
11
12DESCRIPTION
13-----------
14
15The **llvm-lib** command is intended to be a ``lib.exe`` compatible
16tool. See https://msdn.microsoft.com/en-us/library/7ykb2k5f for the
17general description.
18
19**llvm-lib** has the following extensions:
20
21* Bitcode files in symbol tables.
22  **llvm-lib** includes symbols from both bitcode files and regular
23  object files in the symbol table.
24
25* Creating thin archives.
26  The /llvmlibthin option causes **llvm-lib** to create thin archive
27  that contain only the symbol table and the header for the various
28  members. These files are much smaller, but are not compatible with
29  link.exe (lld can handle them).
30