summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2007-11-04 17:32:10 +0000
committerNick Lewycky <nicholas@mxc.ca>2007-11-04 17:32:10 +0000
commitd954dcd138835393fe9959d751b575e89dd10724 (patch)
treeb1d7b6015fcaf383833025413fdd30b85ca130a5 /llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
parenta18a276350d8cbf0a346926b2d3d0c780d19ad6f (diff)
downloadbcm5719-llvm-d954dcd138835393fe9959d751b575e89dd10724.tar.gz
bcm5719-llvm-d954dcd138835393fe9959d751b575e89dd10724.zip
Fix crash before main on ppc/linux with static constructors. PR1771
llvm-svn: 43676
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
index 7d9acd9c360..992b090edd5 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
@@ -60,6 +60,7 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const PPCTargetMachine &TM)
HiddenDirective = "\t.private_extern\t";
SupportsExceptionHandling = false;
NeedsIndirectEncoding = true;
+ BSSSection = 0;
DwarfAbbrevSection = ".section __DWARF,__debug_abbrev,regular,debug";
DwarfInfoSection = ".section __DWARF,__debug_info,regular,debug";
@@ -94,6 +95,7 @@ LinuxTargetAsmInfo::LinuxTargetAsmInfo(const PPCTargetMachine &TM)
StaticDtorsSection = ".section\t.dtors,\"aw\",@progbits";
UsedDirective = "\t# .no_dead_strip\t";
WeakRefDirective = "\t.weak\t";
+ BSSSection = "\t.section\t\".sbss\",\"aw\",@nobits";
DwarfAbbrevSection = "\t.section\t.debug_abbrev,\"\",@progbits";
DwarfInfoSection = "\t.section\t.debug_info,\"\",@progbits";
OpenPOWER on IntegriCloud