Expand description
Reading of the rustc metadata for rlibs and dylibs
Structs§
- Default
Metadata 🔒Loader - The default metadata loader. This is used by cg_llvm and cg_clif.
Enums§
Statics§
Functions§
- add_
gnu_ 🔒property_ note - create_
compressed_ metadata_ file - create_
compressed_ metadata_ file_ for_ xcoff - Xcoff - On AIX, custom sections are merged into predefined sections,
so custom .rustc section is not preserved during linking.
For this reason, we store metadata in predefined .info section, and
define a symbol to reference the metadata. To preserve metadata during
linking on AIX, we have toCreate an empty .text section, a empty .data section.Define an empty symbol named
symbol_name
inside .data section.Define an symbol namedAIX_METADATA_SYMBOL_NAME
referencing data inside .info section. From XCOFF’s view, (2) creates a csect entry in the symbol table, the symbol created by (3) is a info symbol for the preceding csect. Thus two symbols are preserved during linking and we can use the second symbol to reference the metadata. - create_
metadata_ file_ for_ wasm - Creates a simple WebAssembly object file, which is itself a wasm module,
that contains a custom section of the name
section_name
with contentsdata
. - create_
object_ 🔒file - create_
wrapper_ 🔒file - For rlibs we “pack” rustc metadata into a dummy object file.
- get_
metadata_ 🔒xcoff - load_
metadata_ 🔒with - macho_
is_ 🔒arm64e - Is Apple’s CPU subtype
arm64e
s - macho_
object_ 🔒build_ version_ for_ target - Mach-O files contain information about:
- search_
for_ 🔒section