[PATCH] D38335: [llvm-objcopy] Add support for --strip-sections to remove all section headers leaving only program headers and loadable segment data

Jake Ehrlich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 4 14:55:32 PDT 2017


jakehehrlich updated this revision to Diff 117747.
jakehehrlich added a comment.

1. Added boolean flag so that removing sections isn't tied to not having a section header.
2. Moved some of these changes into the -R change where they were more appropriate
3. This change should be the official change where writing out files without section headers is added.


Repository:
  rL LLVM

https://reviews.llvm.org/D38335

Files:
  test/tools/llvm-objcopy/strip-sections.test
  tools/llvm-objcopy/Object.cpp
  tools/llvm-objcopy/Object.h
  tools/llvm-objcopy/llvm-objcopy.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38335.117747.patch
Type: text/x-patch
Size: 6665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171004/200f79a5/attachment.bin>


More information about the llvm-commits mailing list