llvm-project/lld/lib
Nick Kledzik 4121bce3f6 [mach-o] Add Pass to create are shim Atoms for ARM interworking.
Arm code has two instruction encodings "thumb" and "arm".  When branching from
one code encoding to another, you need to use an instruction that switches
the instruction mode.  Usually the transition only happens at call sites, and
the linker can transform a BL instruction in BLX (or vice versa).  But if the
compiler did a tail call optimization and a function ends with a branch (not
branch and link), there is no pc-rel BX instruction.

The ShimPass looks for pc-rel B instructions that will need to switch mode.
For those cases it synthesizes a shim which does the transition, then modifies
the original atom with the B instruction to target to the shim atom.

llvm-svn: 219655
2014-10-14 01:51:42 +00:00
..
Config Add support to print version. 2014-10-08 03:47:51 +00:00
Core PE/COFF: add a check to ensure that we dont mix up architectures 2014-10-05 23:43:59 +00:00
Driver [PECOFF] Emit the delay-import table 2014-10-09 02:48:14 +00:00
Passes Fixes wrong Twine uses in FileNode::errStr() and in LayoutPass.cpp 2014-09-18 23:21:39 +00:00
ReaderWriter [mach-o] Add Pass to create are shim Atoms for ARM interworking. 2014-10-14 01:51:42 +00:00
CMakeLists.txt Add support to print version. 2014-10-08 03:47:51 +00:00
Makefile Add support to print version. 2014-10-08 03:47:51 +00:00