[PATCH] D46369: [llvm-objcopy] Add --strip-symbol (-N) option

Paul Semel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 2 15:55:21 PDT 2018


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

This option strips a symbol from the binary.
As for the `--weaken-symbol`, `--localize-symbol` and `--globalize-symbol` options, we are not following GNU objcopy behavior, as we consider that the user might expect the symbol to be removed, even if it doesn't totally make sense (for this option, it appears that undefined weaken symbols are not stripped).


Repository:
  rL LLVM

https://reviews.llvm.org/D46369

Files:
  test/tools/llvm-objcopy/strip-symbol.test
  tools/llvm-objcopy/Opts.td
  tools/llvm-objcopy/llvm-objcopy.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46369.144945.patch
Type: text/x-patch
Size: 3259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180502/f23559b2/attachment.bin>


More information about the llvm-commits mailing list