[PATCH] D43475: [llvm-objcopy] Implement --only-keep-debug

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 19 10:48:51 PST 2018


arichardson created this revision.
arichardson added reviewers: jakehehrlich, jhenderson.
Herald added a subscriber: llvm-commits.

This implementation removes much more than either GNU binutils or
elftoolchain. The only downside seems to be that GDB prints lots of
warnings like this: `warning: section .init not found in ../clang.debug`
when loading the file but debugging seems to work just fine.

This fixes https://bugs.llvm.org/show_bug.cgi?id=36266


Repository:
  rL LLVM

https://reviews.llvm.org/D43475

Files:
  test/tools/llvm-objcopy/only-keep-debug.test
  tools/llvm-objcopy/llvm-objcopy.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43475.134949.patch
Type: text/x-patch
Size: 4123 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180219/930062a2/attachment.bin>


More information about the llvm-commits mailing list