PPC/Linux normally uses named section for bss
authorAnton Korobeynikov <asl@math.spbu.ru>
Sat, 16 Aug 2008 12:59:02 +0000 (12:59 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sat, 16 Aug 2008 12:59:02 +0000 (12:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54847 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCTargetAsmInfo.cpp

index dc863e2d6ed4885eb483c15ba480ff8348810f4e..1b8c1a5fb3c5ee8538dfec80fc5e4ba58f8177af 100644 (file)
@@ -118,6 +118,11 @@ PPCLinuxTargetAsmInfo::PPCLinuxTargetAsmInfo(const PPCTargetMachine &TM) :
   WeakRefDirective = "\t.weak\t";
   BSSSection = "\t.section\t\".sbss\",\"aw\",@nobits";
 
+  // PPC/Linux normally uses named section for BSS.
+  BSSSection_  = getNamedSection("\t.bss",
+                                 SectionFlags::Writeable | SectionFlags::BSS,
+                                 /* Override */ true);
+
   // Debug Information
   AbsoluteDebugSectionOffsets = true;
   SupportsDebugInformation = true;