diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-07-30 19:55:47 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-07-30 19:55:47 +0000 |
commit | 4320e2d1bb9f5d9f2228ce2e60c5cf102a525b9b (patch) | |
tree | ff580dafc1d86c3a8e67a051cf468650f83eb99e /llvm/lib/Target/ARM/ARMAsmPrinter.cpp | |
parent | 349165b48f88442eaf5519cd6e0d364fdc471a3f (diff) | |
download | bcm5719-llvm-4320e2d1bb9f5d9f2228ce2e60c5cf102a525b9b.tar.gz bcm5719-llvm-4320e2d1bb9f5d9f2228ce2e60c5cf102a525b9b.zip |
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.
llvm-svn: 109879
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMAsmPrinter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp index 003bdaca744..19cb932d1cc 100644 --- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp @@ -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); } } |