Skip to content

Commit

Permalink
Fix linking for symbols starting with ?
Browse files Browse the repository at this point in the history
  • Loading branch information
checkraisefold committed Dec 30, 2024
1 parent 8cdc67e commit 6994ee3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_codegen_ssa/src/back/symbol_export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ pub(crate) fn linking_symbol_name_for_instance_in_crate<'tcx>(
}

let prefix = match &target.arch[..] {
"x86" if target.is_like_windows && undecorated.starts_with("?") => return undecorated,
"x86" => Some('_'),
"x86_64" => None,
"arm64ec" => Some('#'),
Expand Down

0 comments on commit 6994ee3

Please sign in to comment.