summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/darwin-section-order.ll
Commit message (Collapse)AuthorAgeFilesLines
* Don't declare all text sections at the start of the .sRafael Espindola2015-03-201-21/+0
| | | | | | | | | | | | | | | | | The code this patch removes was there to make sure the text sections went before the dwarf sections. That is necessary because MachO uses offsets relative to the start of the file, so adding a section can change relaxations. The dwarf sections were being printed at the start just to produce symbols pointing at the start of those sections. The underlying issue was fixed in r231898. The dwarf sections are now printed when they are about to be used, which is after we printed the text sections. To make sure we don't regress, the patch makes the MachO streamer assert if CodeGen puts anything unexpected after the DWARF sections. llvm-svn: 232842
* ARM: locate user-defined text sections next to default text.Jim Grosbach2012-10-041-0/+21
Make sure functions located in user specified text sections (via the section attribute) are located together with the default text sections. Otherwise, for large object files, the relocations for call instructions are more likely to be out of range. This becomes even more likely in the presence of LTO. rdar://12402636 llvm-svn: 165254
OpenPOWER on IntegriCloud