OSDN Git Service

[llvm-objcopy] Add --strip-unneeded option
authorPaul Semel <semelpaul@gmail.com>
Mon, 21 May 2018 22:50:32 +0000 (22:50 +0000)
committerPaul Semel <semelpaul@gmail.com>
Mon, 21 May 2018 22:50:32 +0000 (22:50 +0000)
commitf7624abeb1f0d012309baf2e78cf2499fbfe5e5f
tree3fbc9ea93ab3effb1197d94dc8b9ff8a0b2ec676
parent07a4eb640cf422ee9612e8c2548828c3048f73a1
[llvm-objcopy] Add --strip-unneeded option

This option removes symbols that are not needed by relocations.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332915 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/strip-unneeded.test [new file with mode: 0644]
tools/llvm-objcopy/ObjcopyOpts.td
tools/llvm-objcopy/Object.cpp
tools/llvm-objcopy/Object.h
tools/llvm-objcopy/llvm-objcopy.cpp