[PATCH] D56481: [llvm-objcopy] [COFF] Implement --strip-all[-gnu] for symbols

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 9 01:44:39 PST 2019


mstorsjo created this revision.
mstorsjo added reviewers: rnk, jhenderson, alexshap, jakehehrlich.
Herald added a subscriber: rupprecht.

This depends on D55881 <https://reviews.llvm.org/D55881> for which I'm still awaiting an ack from @jakehehrlich.

This operation removes all relocations, which is disastrous for object files, but that's probably expected.

When doing this, GNU objcopy sets a few Characteristics flags as well - I'm only setting one of them as the other ones are documented to be deprecated. I'd like to have @rnk's opinion on this part.


Repository:
  rL LLVM

https://reviews.llvm.org/D56481

Files:
  test/tools/llvm-objcopy/COFF/strip-all.yaml
  tools/llvm-objcopy/COFF/COFFObjcopy.cpp
  tools/llvm-objcopy/COFF/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56481.180801.patch
Type: text/x-patch
Size: 5102 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190109/840c0715/attachment.bin>


More information about the llvm-commits mailing list