From 1be946ccc3d6d35e7135d42325d40c41c9594fe3 Mon Sep 17 00:00:00 2001 From: tinaun Date: Tue, 12 May 2020 20:16:03 -0400 Subject: [PATCH] correct section names --- src/librustc_codegen_llvm/base.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/librustc_codegen_llvm/base.rs b/src/librustc_codegen_llvm/base.rs index 6e331b2e55731..f03eab857fe6b 100644 --- a/src/librustc_codegen_llvm/base.rs +++ b/src/librustc_codegen_llvm/base.rs @@ -157,7 +157,7 @@ pub fn write_idata_sections<'tcx>( idata_llmod, llname, llvm::Linkage::PrivateLinkage, - "idata$7", + ".idata$7", ); unsafe { @@ -183,7 +183,7 @@ pub fn write_idata_sections<'tcx>( idata_llmod, llname, llvm::Linkage::PrivateLinkage, - "idata$6", + ".idata$6", ); llvm::LLVMSetGlobalConstant(&llglobal, 1); @@ -211,7 +211,7 @@ pub fn write_idata_sections<'tcx>( idata_llmod, lltable, llvm::Linkage::PrivateLinkage, - "idata$4", + ".idata$4", ); //import address table - filled in at runtime @@ -220,7 +220,7 @@ pub fn write_idata_sections<'tcx>( idata_llmod, lltable, llvm::Linkage::PrivateLinkage, - "idata$3", + ".idata$3", ); let llzero = llvm::LLVMConstInt(llint32, 0, 0); @@ -251,7 +251,7 @@ pub fn write_idata_sections<'tcx>( idata_llmod, lldir_table, llvm::Linkage::ExternalLinkage, - "idata$2", + ".idata$2", ); llvm::LLVMSetGlobalConstant(&lldir_table, 1); }