ReaderWriter: teach the writer about IMAGE_REL_ARM_BRANCH24T
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 2 Jan 2015 18:51:59 +0000 (18:51 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 2 Jan 2015 18:51:59 +0000 (18:51 +0000)
commit434fedb8d8eec0d5d9e904fcb9a9f1c8d2a8513b
tree4eec704c8552e20ebf5f7f105d1fbea48f58aaa7
parentf081873161845277df25b7d36ab5c1ce86f2a521
ReaderWriter: teach the writer about IMAGE_REL_ARM_BRANCH24T

This adds support for IMAGE_REL_ARM_BRANCH24T relocations.  Similar to the
IMAGE_REL_ARM_BLX32T relocation, this relocation requires munging an
instruction.  The instruction encoding is quite similar, allowing us to reuse
the same munging implementation.  This is needed by the entry point stubs for
modules provided by MSVCRT.

llvm-svn: 225082
lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
lld/test/pecoff/Inputs/armnt-branch24t.obj.yaml [new file with mode: 0644]
lld/test/pecoff/Inputs/armnt-branch24t.s [new file with mode: 0644]
lld/test/pecoff/armnt-branch24t.test [new file with mode: 0644]