From 4d8bcfd8381c88371d6e1dfd3faa9b3bd007fcba Mon Sep 17 00:00:00 2001 From: asl Date: Sat, 16 Aug 2008 12:59:02 +0000 Subject: PPC/Linux normally uses named section for bss git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54847 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCTargetAsmInfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp index dc863e2..1b8c1a5 100644 --- a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp +++ b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp @@ -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; -- cgit v1.1