[PATCH] D39926: [llvm-objcopy] Add --only-keep-alloc option to remove all non-allocated sections
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 13 03:20:29 PST 2017
jhenderson added a comment.
Test case?
================
Comment at: tools/llvm-objcopy/llvm-objcopy.cpp:86
cl::desc("Remove all section headers"));
+static cl::opt<bool> OnlyKeepAlloc("only-keep-alloc",
+ cl::desc("Remove all non-allocated sections"));
----------------
I feel like "strip-nonalloc" (or "strip-non-alloc") would be a better option name, personally, as it's more consistent with other options.
Repository:
rL LLVM
https://reviews.llvm.org/D39926
More information about the llvm-commits
mailing list