We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 487427f commit 537e814Copy full SHA for 537e814
compiler/rustc_codegen_llvm/src/base.rs
@@ -58,7 +58,8 @@ pub fn write_compressed_metadata<'tcx>(
58
// https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
59
//
60
// As a result, we choose a slightly shorter name! As to why
61
- // `.note.rustc` works on MinGW, that's another good question...
+ // `.note.rustc` works on MinGW, see
62
+ // https://github.com/llvm/llvm-project/blob/llvmorg-12.0.0/lld/COFF/Writer.cpp#L1190-L1197
63
let section_name = if tcx.sess.target.is_like_osx { "__DATA,.rustc" } else { ".rustc" };
64
65
let (metadata_llcx, metadata_llmod) = (&*llvm_module.llcx, llvm_module.llmod());
0 commit comments