Fix cross-endianness RuntimeDyld relocation for ARM
authorKeno Fischer <kfischer@college.harvard.edu>
Thu, 20 Oct 2016 22:15:56 +0000 (22:15 +0000)
committerKeno Fischer <kfischer@college.harvard.edu>
Thu, 20 Oct 2016 22:15:56 +0000 (22:15 +0000)
commitb04df8eaa239c6547c7bb09a0f022242567f3780
tree98b53ab2127f6ebfad3b017287cc5789f371fac0
parentf3a8803b76ae9bc15f36765a3a677fabac89b12f
Fix cross-endianness RuntimeDyld relocation for ARM

rL284780 fixed the PREL31 relocation and added a test for it. Being
the first such test for ARM relocations, it exposed incorrect endianness
assumptions (causing buildbot failures on big-endian hosts). Fix that by
using the same helpers used for the x86 case.

llvm-svn: 284789
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp