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)
commit837c28a84076e1cd63bbf29057b791ebe6b03de0
tree372856dea1ad4db093d739d08cbdb63fde273360
parenta36091abcfdd2d41b589bab7b82abafe991f104d
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165254 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMAsmPrinter.cpp
test/CodeGen/ARM/darwin-section-order.ll [new file with mode: 0644]