ARM: correct the relocation type for bl on WoA by jordanrh1 · Pull Request #129 · rust-lang/llvm (original) (raw)

Cherry pick /llvm-mirror/llvm#b8d7ba6811da32b73578d3512806483a8014e608 to fix object file generation for windows/arm


The IMAGE_REL_ARM_BRANCH20T applies only to a b.w instruction. A
thumb-2 bl should be relocated using a IMAGE_REL_ARM_BRANCH24T.
Correct the relocation that we emit in such a case.

Resolves PR38620! Based on the patch by Jordan Rhee!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342109 91177308-0d34-0410-b5e6-96231b3b80d8