mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix section definition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8cd4c3e653
commit
471ffaffd8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user