From eb2aa096bb8aba742b87a99d561185bb3f8863c5 Mon Sep 17 00:00:00 2001 From: Venkatraman Govindaraju Date: Wed, 26 Aug 2009 18:24:12 +0000 Subject: [PATCH] Generate section for bss and enable weak symbols git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80121 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Sparc/SparcMCAsmInfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Target/Sparc/SparcMCAsmInfo.cpp b/lib/Target/Sparc/SparcMCAsmInfo.cpp index e9d1c38f828..c45d124a1c6 100644 --- a/lib/Target/Sparc/SparcMCAsmInfo.cpp +++ b/lib/Target/Sparc/SparcMCAsmInfo.cpp @@ -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"; }