We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cfb885 commit 25f7eeeCopy full SHA for 25f7eee
src/driver/jit.rs
@@ -209,6 +209,11 @@ fn load_imported_symbols_for_jit(tcx: TyCtxt<'_>) -> Vec<(String, *const u8)> {
209
if name.is_empty() || !symbol.is_global() || symbol.is_undefined() {
210
return None;
211
}
212
+ if name.starts_with("rust_metadata_") {
213
+ // The metadata is part of a section that is not loaded by the dynamic linker in
214
+ // case of cg_llvm.
215
+ return None;
216
+ }
217
let dlsym_name = if cfg!(target_os = "macos") {
218
// On macOS `dlsym` expects the name without leading `_`.
219
assert!(name.starts_with('_'), "{:?}", name);
0 commit comments