Macros§
Structs§
- AixLinker 🔒
- Linker for AIX.
- BpfLinker 🔒
- EmLinker 🔒
- GccLinker 🔒
- L4Bender 🔒
- Linker shepherd script for L4Re (Fiasco)
- Llbc
Linker 🔒 - The
self-contained
LLVM bitcode linker - Msvc
Linker 🔒 - 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 🔒
Traits§
- Linker 🔒
- Linker abstraction used by
back::link
to build up the command to invoke a linker.
Functions§
- 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.