Add support for ARM and AArch64 BE object files
authorRenato Golin <renato.golin@linaro.org>
Wed, 24 Sep 2014 20:07:30 +0000 (20:07 +0000)
committerRenato Golin <renato.golin@linaro.org>
Wed, 24 Sep 2014 20:07:30 +0000 (20:07 +0000)
commitbc7101b134cbd66a9e2ef1edfd56fe4ec24e5e1c
treeed9896b42d40ac94cdc2f6e5e1b662d2f1e17003
parentc0104e4001c77a57208b031d23cc93de903b14d9
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@218407 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]