diff --git a/src/inline_asm.rs b/src/inline_asm.rs index ca0f34e39..02c46465b 100644 --- a/src/inline_asm.rs +++ b/src/inline_asm.rs @@ -605,8 +605,8 @@ impl<'tcx> InlineAssemblyGenerator<'_, 'tcx> { writeln!(generated_asm, "_{}:", asm_name).unwrap(); } BinaryFormat::Coff => { - writeln!(generated_asm, ".globl _{}", asm_name).unwrap(); - writeln!(generated_asm, "_{}:", asm_name).unwrap(); + writeln!(generated_asm, ".globl {}", asm_name).unwrap(); + writeln!(generated_asm, "{}:", asm_name).unwrap(); } _ => self .tcx