diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-08-16 12:59:02 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-08-16 12:59:02 +0000 |
commit | afc20ae0e538a731f379dc1ae9ac564023078978 (patch) | |
tree | e3ad4b4f9f4df9d05091f04324322df79f619b5a | |
parent | 888839e5edfa7e6678272f38f4d8b6ce7ff9029c (diff) | |
download | llvm-afc20ae0e538a731f379dc1ae9ac564023078978.tar.gz llvm-afc20ae0e538a731f379dc1ae9ac564023078978.tar.bz2 llvm-afc20ae0e538a731f379dc1ae9ac564023078978.tar.xz |
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
-rw-r--r-- | lib/Target/PowerPC/PPCTargetAsmInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp index dc863e2d6e..1b8c1a5fb3 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; |