[][src]Module rustc_codegen_ssa::back::link

Enums

RlibFlavor

Functions

add_late_link_args

Add arbitrary "late link" args defined by the target spec. FIXME: Determine where exactly these args need to be inserted.

add_library_search_dirs

Add sysroot and other globally set directories to the directory search list.

add_link_script

Add a link script embedded in the target, if applicable.

add_local_crate_allocator_objects

Add object files for allocator code linked once for the whole crate tree.

add_local_crate_metadata_objects

Add object files containing metadata for the current crate.

add_local_crate_regular_objects

Add object files containing code from the current crate.

add_local_native_libraries
add_post_link_args

Add arbitrary "post-link" args defined by the target spec. FIXME: Determine where exactly these args need to be inserted.

add_post_link_objects

Add post-link object files defined by the target spec.

add_pre_link_args

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_objects

Add pre-link object files defined by the target spec.

add_relro_args

Add options making relocation sections in the produced ELF files read-only and suppressing lazy binding.

add_rpath_args

Add library search paths used at runtime by dynamic linkers.

add_upstream_native_libraries
add_upstream_rust_crates
add_user_defined_link_args

Add arbitrary "user defined" args defined from command line and by #[link_args] attributes. FIXME: Determine where exactly these args need to be inserted.

archive_search_paths
are_upstream_rust_objects_already_included
crt_objects_fallback

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.

detect_self_contained_mingw
each_linked_rlib
emit_metadata

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.

exec_linker
get_linker
get_object_file_path
ignored_for_lto

Returns a boolean indicating whether the specified crate should be ignored during LTO.

link_binary

Performs the linkage portion of the compilation phase. This will generate all of the requested outputs for this compilation session.

link_local_crate_native_libs_and_dependent_crate_libs

Link native libraries corresponding to the current crate and all libraries corresponding to all its dependency crates. FIXME: Consider combining this with the functions above adding object files for the local crate.

link_natively
link_output_kind
link_rlib
link_sanitizer_runtime
link_sanitizers
link_staticlib
linker_and_flavor
linker_with_args

Produce the linker command line containing linker path and arguments. NO-OPT-OUT marks the arguments that cannot be removed from the command line by the user without creating a custom target specification. OBJECT-FILES specify whether the arguments can add object files. CUSTOMIZATION-POINT means that arbitrary arguments defined by the user or by the target spec can be inserted here. AUDIT-ORDER - need to figure out whether the option is order-dependent or not.

preserve_objects_for_their_debuginfo

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.

print_native_static_libs
relevant_lib
remove