Add support for ARM and AArch64 BE object files
authorRenato Golin <renato.golin@linaro.org>
Wed, 24 Sep 2014 17:01:06 +0000 (17:01 +0000)
committerRenato Golin <renato.golin@linaro.org>
Wed, 24 Sep 2014 17:01:06 +0000 (17:01 +0000)
commit1513681a0b6feefb1cf7253c89240571c0233cba
tree62f23b9ded9a897f84576d5fcd41cca7a0914521
parentfaac033f7364bb4226e22c8079c221c96af10d02
Add support for ARM and AArch64 BE object files

This change fixes the ARM and AArch64 relocation visitors in
RelocVisitor.  They were unconditionally assuming the object data are
little-endian.  Tests have been added to ensure that the
llvm-dwarfdump utility does not crash when processing big-endian
object files.

Patch by Charlie Turner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218389 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/RelocVisitor.h
test/tools/llvm-dwarfdump/AArch64/big-endian-dump.ll [new file with mode: 0644]
test/tools/llvm-dwarfdump/AArch64/lit.local.cfg [new file with mode: 0644]
test/tools/llvm-dwarfdump/ARM/big-endian-dump.ll [new file with mode: 0644]
test/tools/llvm-dwarfdump/ARM/lit.local.cfg [new file with mode: 0644]