LLVM-LINK(1)
π LLVM-LINK π (from the LLVM manual, bestie)
okay so real talk, this is the man page for llvm-link β it lives in the LLVM section of your manuals, and it's literally the bitcode linker. group chat open, let's go π«Ά
β¨ NAME β¨
llvm-link β LLVM bitcode linker
πΈ SYNOPSIS πΈ
llvm-link [options] filename ...
π¦ DESCRIPTION π¦
so llvm-link is the girl that takes a whole lil friend group of LLVM bitcode files and links them together into one single LLVM bitcode file. iconic behaviour honestly.
and the way it writes the output file to standard output unless you use the -o option to name a fileβ¦ main character energy π
π OPTIONS π
-fβ turns on binary output on terminals. normallyllvm-linkis like "bestie no" and refuses to write raw bitcode output if the output stream is a terminal. with this flag it writes raw bitcode regardless of the output device. no cap.-ofilename β names the output file. and if filename is-, thenllvm-linkwrites its output to standard output. cute.-Sβ writes the output in LLVM intermediate language instead of bitcode. (translation: she's giving text, not binary β¨)-dβ if you specify it,llvm-linkprints a human-readable version of the output bitcode file to standard error.--helpβ prints a summary of the command line options. when you're lost, she's got you π-vβ verbose mode. prints info about whatllvm-linkis doing. typically that means a message for each bitcode file linked in and for each library found. so it's like she's live-texting you the whole link π--overridefilename β adds the passed-in file to the link and overrides symbols that have already been declared with the definitions in the file that is passed in. this flag can be specified multiple times so multiple files can act as overrides. and if a symbol is declared more than twice, the definition from the file declared last takes precedence. last one wins, periodt.--importfunction:filename β specifies a function that should be imported from the specified file for linking with ThinLTO. you can specify this option multiple times to import multiple functions.--summary-indexfilename β specifies the path to a file containing the module summary index with the results of an earlier ThinLTO link. > bestie this one is required when--importis used. don't forget it, it's giving mandatory π--internalizeβ internalizes the linked symbols.--disable-debug-info-type-mapβ disables the use of a uniquing type map for debug info.--only-neededβ links only needed symbols. minimal queen π--disable-lazy-loadingβ disables lazy module loading.--suppress-warningsβ suppresses all linker warnings. nothing to see here π«Ά--preserve-bc-uselistorderβ preserves the use-list order when writing LLVM bitcode.--preserve-ll-uselistorderβ preserves the use-list order when writing LLVM assembly.--ignore-non-bitcodeβ does not error out when a non-bitcode file is encountered while processing an archive.
β EXIT STATUS β
if llvm-link succeeds, she exits with 0. otherwise, if an error occurs, she exits with a non-zero value. simple as that π
π Author π
Maintained by the LLVM Team (https://llvm.org/).
π Copyright π
2003-2026, LLVM Project
and that's the whole vibe check, bestie π this page is from the LLVM Project, dated 2026-07-16, version 22 β stay slay, link responsibly, and may all your symbols resolve πβ¨
π¦ where this page comes from
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms