Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support loading and linking of
.text.unlikely.
sections (theseus-os…
…#520) * A recent change to Rust's usage of LLVM resulted in some sections in the compiled object files now being named `.text.unlikely.<name>`, which the module management (crate loading) code did not previously account for. * We now handle global `.text.unlikely` sections only, as those are the ones that need the proper name to be parsed in order to be added to the current namespace's symbol map. Moreover, other sections in foreign crates may depend on that symbol existing _without_ the `.unlikely.` prefix. * For example, this occurs in the `wasmtime_runtime` crate at the very least, and perhaps others as well. * Note: I attempted to disable the hot-cold splitting of function sections that causes this by passing a variety of different `-C llvm-args=...` arguments to rustc, but none of them made a difference.
- Loading branch information