[PATCH] D47052: [llvm-objcopy] Fix the behavior of --strip-* and --keep-symbol

Alexander Shaposhnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 17 21:32:25 PDT 2018


alexshap created this revision.
alexshap added reviewers: jakehehrlich, jhenderson.

I've played with binutils objcopy --strip-all --keep-symbol foo,
so if the symbols table contains the symbol "foo"
it's not getting removed and, more over, all the local symbols are kept as well.
binutils strip behaves the same way.

Test plan: make check-all


Repository:
  rL LLVM

https://reviews.llvm.org/D47052

Files:
  test/tools/llvm-objcopy/strip-all-and-keep-symbol.test
  tools/llvm-objcopy/llvm-objcopy.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47052.147438.patch
Type: text/x-patch
Size: 7244 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180518/443b657b/attachment.bin>


More information about the llvm-commits mailing list