Skip to content

Commit 537e814

Browse files
committed
Add link to historic note
1 parent 487427f commit 537e814

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_codegen_llvm/src

1 file changed

+2
-1
lines changed

compiler/rustc_codegen_llvm/src/base.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ pub fn write_compressed_metadata<'tcx>(
5858
// https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
5959
//
6060
// As a result, we choose a slightly shorter name! As to why
61-
// `.note.rustc` works on MinGW, that's another good question...
61+
// `.note.rustc` works on MinGW, see
62+
// https://github.com/llvm/llvm-project/blob/llvmorg-12.0.0/lld/COFF/Writer.cpp#L1190-L1197
6263
let section_name = if tcx.sess.target.is_like_osx { "__DATA,.rustc" } else { ".rustc" };
6364

6465
let (metadata_llcx, metadata_llmod) = (&*llvm_module.llcx, llvm_module.llmod());

0 commit comments

Comments
 (0)