Stop producing .data.rel sections.
[oota-llvm.git] / lib / Target / TargetLoweringObjectFile.cpp
index 5ccdae420245affa4114ff5a8aa995c992370af3..a0b0d8f240465b7c8267893fd553b444ea4a1738 100644 (file)
@@ -227,11 +227,11 @@ SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV,
   // globals together onto fewer pages, improving the locality of the dynamic
   // linker.
   if (ReloModel == Reloc::Static)
-    return SectionKind::getDataNoRel();
+    return SectionKind::getData();
 
   if (C->needsRelocation())
-    return SectionKind::getDataRel();
-  return SectionKind::getDataNoRel();
+    return SectionKind::getData();
+  return SectionKind::getData();
 }
 
 /// This method computes the appropriate section to emit the specified global