Skip to content

Commit d81cc68

Browse files
committed
fix: add EII function aliases to exported symbols
1 parent 595f14b commit d81cc68

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

compiler/rustc_codegen_ssa/src/back/symbol_export.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,14 @@ fn exported_non_generic_symbols_provider_local<'tcx>(
199199
}))
200200
}
201201

202+
symbols.extend(sorted.iter().flat_map(|&(&def_id, &info)| {
203+
tcx.codegen_fn_attrs(def_id).foreign_item_symbol_aliases.iter().map(
204+
move |&(foreign_item, _linkage, _visibility)| {
205+
(ExportedSymbol::NonGeneric(foreign_item), info)
206+
},
207+
)
208+
}));
209+
202210
if tcx.entry_fn(()).is_some() {
203211
let exported_symbol =
204212
ExportedSymbol::NoDefId(SymbolName::new(tcx, tcx.sess.target.entry_name.as_ref()));

0 commit comments

Comments
 (0)