if (CP.empty()) return;
- SwitchSection(O, "section .rodata");
+ SwitchSection(O, "rodata");
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
// SwitchSection(O, "section .rodata, \"dr\"");
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
if (CurSection != NewSection) {
CurSection = NewSection;
if (!CurSection.empty())
- OS << "\t." << NewSection << "\n";
+ OS << "\t.section ." << NewSection << "\n";
}
}
// FALL THROUGH
case GlobalValue::InternalLinkage:
if (C->isNullValue())
- SwitchSection(O, "bss"); //was .bss
+ SwitchSection(O, "bss");
else
SwitchSection(O, "data");
break;