[lld][ARM] Add relocations to perform function calls
authorDenis Protivensky <dprotivensky@accesssoftek.com>
Tue, 3 Feb 2015 10:48:37 +0000 (10:48 +0000)
committerDenis Protivensky <dprotivensky@accesssoftek.com>
Tue, 3 Feb 2015 10:48:37 +0000 (10:48 +0000)
commitb635ae8388f45a36878d681fd50be071899c14c4
tree75d72ecea2c27787dec34e5e0cdc103095ff96c8
parent1702eb184092968d6ad7bb5add9e73b3406c2a11
[lld][ARM] Add relocations to perform function calls

Added relocations to perform function calls with and without passing arguments.
ARM-only, Thumb-only and mixed mode code generations are supported.
Only simple veneers (direct instruction modification) are supported as ARM-Thumb interwork.

Differential Revision: http://reviews.llvm.org/D7223

llvm-svn: 227961
lld/lib/ReaderWriter/ELF/ARM/ARMRelocationHandler.cpp
lld/test/elf/ARM/rel-abs32.test
lld/test/elf/ARM/rel-arm-call.test
lld/test/elf/ARM/rel-arm-jump24.test [new file with mode: 0644]
lld/test/elf/ARM/rel-arm-mov.test [new file with mode: 0644]
lld/test/elf/ARM/rel-arm-thm-interwork.test [new file with mode: 0644]
lld/test/elf/ARM/rel-thm-call.test [new file with mode: 0644]
lld/test/elf/ARM/rel-thm-jump24.test [new file with mode: 0644]
lld/test/elf/ARM/rel-thm-mov.test [new file with mode: 0644]