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 | 227246a9b5449d73019e5cb0af5e3eacad32751a (patch) | |
| tree | 0c54d4c6ef907e93fcc713ab74d0ae0b0fcdab0a /lib | |
| parent | 693e9155256e2d8130159e044fdebfd8a3bd76a7 (diff) | |
| download | external_llvm-227246a9b5449d73019e5cb0af5e3eacad32751a.zip external_llvm-227246a9b5449d73019e5cb0af5e3eacad32751a.tar.gz external_llvm-227246a9b5449d73019e5cb0af5e3eacad32751a.tar.bz2 | |
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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Target/ARM/ARMAsmPrinter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp index 003bdac..19cb932 100644 --- a/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/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); } } |
