mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Add the __TEXT,__StaticInit section to the list of sections emitted at the
beginning on ARM Darwin assembly files so that it won't be placed after debug sections. Radar 8252813. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109879 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
98f985607b
commit
63db594559
@ -1165,6 +1165,12 @@ void ARMAsmPrinter::EmitStartOfAsmFile(Module &M) {
|
||||
16, SectionKind::getText());
|
||||
OutStreamer.SwitchSection(sect);
|
||||
}
|
||||
const MCSection *StaticInitSect =
|
||||
OutContext.getMachOSection("__TEXT", "__StaticInit",
|
||||
MCSectionMachO::S_REGULAR |
|
||||
MCSectionMachO::S_ATTR_PURE_INSTRUCTIONS,
|
||||
SectionKind::getText());
|
||||
OutStreamer.SwitchSection(StaticInitSect);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user