Skip to content

Commit

Permalink
correct section names
Browse files Browse the repository at this point in the history
  • Loading branch information
tinaun committed May 26, 2020
1 parent 7a9962f commit 1be946c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/librustc_codegen_llvm/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub fn write_idata_sections<'tcx>(
idata_llmod,
llname,
llvm::Linkage::PrivateLinkage,
"idata$7",
".idata$7",
);

unsafe {
Expand All @@ -183,7 +183,7 @@ pub fn write_idata_sections<'tcx>(
idata_llmod,
llname,
llvm::Linkage::PrivateLinkage,
"idata$6",
".idata$6",
);

llvm::LLVMSetGlobalConstant(&llglobal, 1);
Expand Down Expand Up @@ -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
Expand All @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 1be946c

Please sign in to comment.