Module rustc_codegen_ssa::back::link [−][src]
Enums
Constants
Functions
Add arbitrary “late link” args defined by the target spec. FIXME: Determine where exactly these args need to be inserted.
Add sysroot and other globally set directories to the directory search list.
Add a link script embedded in the target, if applicable.
Add object files for allocator code linked once for the whole crate tree.
Add object files containing metadata for the current crate.
Add object files containing code from the current crate.
Native library linking
Add arbitrary “post-link” args defined by the target spec. FIXME: Determine where exactly these args need to be inserted.
Add post-link object files defined by the target spec.
Add arbitrary “pre-link” args defined by the target spec or from command line. FIXME: Determine where exactly these args need to be inserted.
Add pre-link object files defined by the target spec.
Add options making relocation sections in the produced ELF files read-only and suppressing lazy binding.
Add library search paths used at runtime by dynamic linkers.
Link in all of our upstream crates’ native dependencies. Remember that all of these upstream native dependencies are all non-static dependencies. We’ve got two cases then:
Linking Rust crates and their nobundle static libraries
Add arbitrary “user defined” args defined from command line. FIXME: Determine where exactly these args need to be inserted.
Extract all symbols defined in raw-dylib libraries, collated by library name.
Whether we link to our own CRT objects instead of relying on gcc to pull them. We only provide such support for a very limited number of targets.
We use a temp directory here to avoid races between concurrent rustc processes,
such as builds in the same directory using the same filename for metadata while
building an .rlib
(stomping over one another), or writing an .rmeta
into a
directory being searched for extern crate
(observing an incomplete file).
The returned path is the temporary file containing the complete metadata.
Returns a boolean indicating whether the specified crate should be ignored during LTO.
Performs the linkage portion of the compilation phase. This will generate all of the requested outputs for this compilation session.
Invoke llvm-dwp
(shipped alongside rustc) to link dwo
files from Split DWARF into a dwp
file.
Create a dynamic library or executable.
Create an ‘rlib’.
Create a static archive.
Produce the linker command line containing linker path and arguments.
Returns a boolean indicating whether we should preserve the object files on the filesystem for their debug information. This is often useful with split-dwarf like schemes.