[PATCH] D67137: [llvm-objcopy] Support --only-keep-debug

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 25 15:34:03 PDT 2019


MaskRay updated this revision to Diff 226509.
MaskRay retitled this revision from "[exposition-only][llvm-objcopy] Add a new file offset assignment algorithm and support --only-keep-debug" to "[llvm-objcopy] Support --only-keep-debug".
MaskRay edited the summary of this revision.
MaskRay added a comment.

Reclaim

Discussed with Manjoy, labath and others, we need a solution that rewrites p_offset/p_filesz so that we can do some symbolization without access to the original executable.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67137/new/

https://reviews.llvm.org/D67137

Files:
  llvm/test/tools/llvm-objcopy/ELF/basic-only-keep-debug.test
  llvm/test/tools/llvm-objcopy/ELF/only-keep-debug.test
  llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  llvm/tools/llvm-objcopy/ELF/Object.cpp
  llvm/tools/llvm-objcopy/ELF/Object.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67137.226509.patch
Type: text/x-patch
Size: 13608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191025/38e7e875/attachment.bin>


More information about the llvm-commits mailing list