diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-05-10 10:49:45 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-05-10 10:49:45 +0200 |
| commit | 537e814d9c22d69868272cd472bf30164700c402 (patch) | |
| tree | 30cf80427bc4d5e4758bbd8bac786de449868f69 | |
| parent | 487427fbe67480ee7248d775c4ffecd21df12626 (diff) | |
| download | rust-537e814d9c22d69868272cd472bf30164700c402.tar.gz rust-537e814d9c22d69868272cd472bf30164700c402.zip | |
Add link to historic note
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/base.rs | 3 |
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()); |
