OSDN Git Service

Reland "[LLVM][llvm-objcopy] Added basic plumbing to get things started"
authorPetr Hosek <phosek@chromium.org>
Sat, 22 Jul 2017 02:33:45 +0000 (02:33 +0000)
committerPetr Hosek <phosek@chromium.org>
Sat, 22 Jul 2017 02:33:45 +0000 (02:33 +0000)
commit2b52298eb28ba4d3eca113353a348c02a6ef1f93
treee96ec7e77d0425a33b1270e6d58a0611fc2dbeb4
parenta6f2bdc947fb64758db17e9e5e7cb6815f6853bc
Reland "[LLVM][llvm-objcopy] Added basic plumbing to get things started"

As discussed on llvm-dev I've implemented the first basic steps towards
llvm-objcopy/llvm-objtool (name pending).

This change adds the ability to copy (without modification) 64-bit
little endian ELF executables that have SHT_PROGBITS, SHT_NOBITS,
SHT_NULL and SHT_STRTAB sections.

Patch by Jake Ehrlich

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308821 91177308-0d34-0410-b5e6-96231b3b80d8
test/CMakeLists.txt
test/tools/llvm-objcopy/basic-copy.test [new file with mode: 0644]
test/tools/llvm-objcopy/empty-section.test [new file with mode: 0644]
test/tools/llvm-objcopy/program-headers.test [new file with mode: 0644]
tools/LLVMBuild.txt
tools/llvm-objcopy/CMakeLists.txt [new file with mode: 0644]
tools/llvm-objcopy/LLVMBuild.txt [new file with mode: 0644]
tools/llvm-objcopy/Object.cpp [new file with mode: 0644]
tools/llvm-objcopy/Object.h [new file with mode: 0644]
tools/llvm-objcopy/llvm-objcopy.cpp [new file with mode: 0644]
tools/llvm-objcopy/llvm-objcopy.h [new file with mode: 0644]