Module linker Copy item path Source generate_arg_methods π AixLinker π Linker for AIX. BpfLinker π EmLinker π GccLinker π L4Bender π Linker shepherd script for L4Re (Fiasco) LlbcLinker π The self-contained
LLVM bitcode linker MsvcLinker π PtxLinker π Much simplified and explicit CLI for the NVPTX linker. The linker operates
with bitcode and uses LLVM backend to generate a PTX assembly. WasmLd π Linker π Linker abstraction used by back::link
to build up the command to invoke a
linker. cc_args π Arguments for the cc wrapper specifically.
Check that itβs indeed a cc wrapper and pass verbatim. convert_link_args_to_cc_args π Add underlying linker arguments to C compiler command, by wrapping them in
-Wl
or -Xlinker
. disable_localization π Disables non-English messages from localized linkers.
Such messages may cause issues with text encoding on Windows (#35785)
and prevent inspection of linker output in case of errors, which we occasionally do.
This should be acceptable because other messages from rustc are in English anyway,
and may also be desirable to improve searchability of the linker diagnostics. exported_symbols π exported_symbols_for_non_proc_macro π exported_symbols_for_proc_macro_crate π for_each_exported_symbols_include_dep π get_linker π The third parameter is for env vars, used on windows to set up the
path for MSVC to find its DLLs, and gcc to find its bundled
toolchain link_args π Arguments for the underlying linker.
Add options to pass them through cc wrapper if Linker
is a cc wrapper. link_or_cc_args π Arguments supported by both underlying linker and cc wrapper, pass verbatim. linked_symbols π verbatim_args π Just pass the arguments to the linker as is.
It is assumed that they are correctly prepared in advance.