Generate section for bss and enable weak symbols
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>
Wed, 26 Aug 2009 18:24:12 +0000 (18:24 +0000)
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>
Wed, 26 Aug 2009 18:24:12 +0000 (18:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80121 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcMCAsmInfo.cpp

index e9d1c38f8281ac2d4e5a98a87651e94bc648213f..c45d124a1c6be36e71aed689362a1ed3628733b4 100644 (file)
@@ -24,6 +24,12 @@ SparcELFMCAsmInfo::SparcELFMCAsmInfo(const Target &T, const StringRef &TT) {
   COMMDirectiveTakesAlignment = true;
   
   SunStyleELFSectionSwitchSyntax = true;
+  UsesELFSectionDirectiveForBSS = true;
+
+  WeakRefDirective = "\t.weak\t";
+  SetDirective = "\t.set\t";
+
+  PrivateGlobalPrefix = ".L";
 }