ARM: locate user-defined text sections next to default text.
authorJim Grosbach <grosbach@apple.com>
Thu, 4 Oct 2012 21:33:24 +0000 (21:33 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 4 Oct 2012 21:33:24 +0000 (21:33 +0000)
commit330840ffd920c1e9f58561a227c0b3dbe86650da
tree8b0c27903344d6dcb6736a0a9d411a3e766b6b43
parentccbcf3876faa7ba93352926e00e1b68313c977b9
ARM: locate user-defined text sections next to default text.

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
llvm/lib/Target/ARM/ARMAsmPrinter.cpp
llvm/test/CodeGen/ARM/darwin-section-order.ll [new file with mode: 0644]