From 537e814d9c22d69868272cd472bf30164700c402 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Mon, 10 May 2021 10:49:45 +0200 Subject: Add link to historic note --- compiler/rustc_codegen_llvm/src/base.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/rustc_codegen_llvm/src') 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()); -- cgit 1.4.1-3-g733a5