mingw uses .data and .text, not _data and _text.
authorChris Lattner <sabre@nondot.org>
Wed, 29 Jul 2009 05:25:42 +0000 (05:25 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Jul 2009 05:25:42 +0000 (05:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77435 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetLoweringObjectFile.cpp

index e0b294173f0cbc1c67756b009670bf3798ec83f2..166f1201781b5e147028425463c50887e77208d2 100644 (file)
@@ -590,8 +590,8 @@ getSectionForMergeableConstant(SectionKind Kind) const {
 //===----------------------------------------------------------------------===//
 
 TargetLoweringObjectFileCOFF::TargetLoweringObjectFileCOFF() {
-  TextSection = getOrCreateSection("_text", true, SectionKind::Text);
-  DataSection = getOrCreateSection("_data", true, SectionKind::DataRel);
+  TextSection = getOrCreateSection("\t.text", true, SectionKind::Text);
+  DataSection = getOrCreateSection("\t.data", true, SectionKind::DataRel);
 }
 
 void TargetLoweringObjectFileCOFF::