about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-05-10 10:49:45 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-05-10 10:49:45 +0200
commit537e814d9c22d69868272cd472bf30164700c402 (patch)
tree30cf80427bc4d5e4758bbd8bac786de449868f69
parent487427fbe67480ee7248d775c4ffecd21df12626 (diff)
downloadrust-537e814d9c22d69868272cd472bf30164700c402.tar.gz
rust-537e814d9c22d69868272cd472bf30164700c402.zip
Add link to historic note
-rw-r--r--compiler/rustc_codegen_llvm/src/base.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/base.rs b/compiler/rustc_codegen_llvm/src/base.rs
index aeb0561c086..893c909b204 100644
--- a/compiler/rustc_codegen_llvm/src/base.rs
+++ b/compiler/rustc_codegen_llvm/src/base.rs
@@ -58,7 +58,8 @@ pub fn write_compressed_metadata<'tcx>(
     // https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
     //
     // As a result, we choose a slightly shorter name! As to why
-    // `.note.rustc` works on MinGW, that's another good question...
+    // `.note.rustc` works on MinGW, see
+    // https://github.com/llvm/llvm-project/blob/llvmorg-12.0.0/lld/COFF/Writer.cpp#L1190-L1197
     let section_name = if tcx.sess.target.is_like_osx { "__DATA,.rustc" } else { ".rustc" };
 
     let (metadata_llcx, metadata_llmod) = (&*llvm_module.llcx, llvm_module.llmod());