forked from OSchip/llvm-project
parent
3e956974b3
commit
75aaf1fa6a
|
@ -753,7 +753,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
|
||||||
<< "\t.weak_definition " << name << "\n";
|
<< "\t.weak_definition " << name << "\n";
|
||||||
SwitchToDataSection("\t.section __DATA,__const_coal,coalesced", I);
|
SwitchToDataSection("\t.section __DATA,__const_coal,coalesced", I);
|
||||||
} else {
|
} 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";
|
<< "\t.weak " << name << "\n";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -774,7 +774,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
|
||||||
I->getSection() == ".dtors")) {
|
I->getSection() == ".dtors")) {
|
||||||
assert(!Subtarget->isDarwin());
|
assert(!Subtarget->isDarwin());
|
||||||
std::string SectionName = ".section " + I->getSection();
|
std::string SectionName = ".section " + I->getSection();
|
||||||
SectionName += ",\"aw\",@progbits";
|
SectionName += ",\"aw\",%progbits";
|
||||||
SwitchToDataSection(SectionName.c_str());
|
SwitchToDataSection(SectionName.c_str());
|
||||||
} else {
|
} else {
|
||||||
SwitchToDataSection(TAI->getDataSection(), I);
|
SwitchToDataSection(TAI->getDataSection(), I);
|
||||||
|
|
Loading…
Reference in New Issue