Fix section definition.
authorLauro Ramos Venancio <lauro.venancio@gmail.com>
Fri, 19 Jan 2007 17:33:22 +0000 (17:33 +0000)
committerLauro Ramos Venancio <lauro.venancio@gmail.com>
Fri, 19 Jan 2007 17:33:22 +0000 (17:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33359 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMAsmPrinter.cpp

index a6ceb85cb3c9a5b020ca520956e9be180a8ceafc..94f53b70b5c350ade58c38746dddfc6a5fbad238 100644 (file)
@@ -753,7 +753,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
             << "\t.weak_definition " << name << "\n";
           SwitchToDataSection("\t.section __DATA,__const_coal,coalesced", I);
         } else {
-          O << "\t.section\t.llvm.linkonce.d." << name << ",\"aw\",@progbits\n"
+          O << "\t.section\t.llvm.linkonce.d." << name << ",\"aw\",%progbits\n"
             << "\t.weak " << name << "\n";
         }
         break;
@@ -774,7 +774,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
              I->getSection() == ".dtors")) {
           assert(!Subtarget->isDarwin());
           std::string SectionName = ".section " + I->getSection();
-          SectionName += ",\"aw\",@progbits";
+          SectionName += ",\"aw\",%progbits";
           SwitchToDataSection(SectionName.c_str());
         } else {
           SwitchToDataSection(TAI->getDataSection(), I);