[llvm-objcopy] Allow strip symtab in executables and DSOs
commitd414567b4022d1247101d5462e5c230a79014c40
authorEugene Leviant <eleviant@accesssoftek.com>
Tue, 23 Jul 2019 08:03:30 +0000 (23 08:03 +0000)
committerEugene Leviant <eleviant@accesssoftek.com>
Tue, 23 Jul 2019 08:03:30 +0000 (23 08:03 +0000)
tree0c350960ab8a9fe5b0d78d0cb670d7cf4b6b5fd5
parente7c689bb720de89a2ec1d08bb36d66c63449280c
[llvm-objcopy] Allow strip symtab in executables and DSOs

Re-commit of the patch after addressing -Wl,--emit-relocs case.
Differential revision: https://reviews.llvm.org/D61672

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366787 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/ELF/preserve-segment-contents-ehdr-phdrs.test
test/tools/llvm-objcopy/ELF/remove-multiple-sections.test
test/tools/llvm-objcopy/ELF/segment-shift-section-remove.test
test/tools/llvm-objcopy/ELF/segment-test-remove-section.test
test/tools/llvm-objcopy/ELF/strip-unneeded-all-symbols.test [new file with mode: 0644]
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
tools/llvm-objcopy/ELF/Object.cpp
tools/llvm-objcopy/ELF/Object.h