[llvm-objcopy] Support the rest of the ELF formats
authorJake Ehrlich <jakehehrlich@google.com>
Tue, 14 Nov 2017 18:41:47 +0000 (18:41 +0000)
committerJake Ehrlich <jakehehrlich@google.com>
Tue, 14 Nov 2017 18:41:47 +0000 (18:41 +0000)
commit99e2c41c1aecb77d1b7f3ab74ced9db2a54e5386
tree1c603fad438138f89f46054e4ffb024c08ffe133
parentb8a11bbcf139087b7487dee78af275bd87c5d39d
[llvm-objcopy] Support the rest of the ELF formats

We haven't been supporting anything but ELF64LE since the start. Luckily
this was always accounted for and the change is pretty trivial. B35281
requests this change for ELF32LE. This change adds support for ELF32LE,
ELF64BE, and ELF32BE with all supported features that already existed
for ELF64LE.

Differential Revision: https://reviews.llvm.org/D39977

llvm-svn: 318166
llvm/test/tools/llvm-objcopy/elf32be.test [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/elf32le.test [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/elf64be.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/llvm-objcopy.cpp