[PATCH] D52163: -S as an alias for --strip-all-gnu
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 17 02:46:43 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL342364: [llvm-objcopy] Add missing alias for --strip-all-gnu (authored by alexshap, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D52163?vs=165726&id=165730#toc
Repository:
rL LLVM
https://reviews.llvm.org/D52163
Files:
llvm/trunk/test/tools/llvm-objcopy/strip-all-gnu.test
llvm/trunk/tools/llvm-objcopy/ObjcopyOpts.td
Index: llvm/trunk/tools/llvm-objcopy/ObjcopyOpts.td
===================================================================
--- llvm/trunk/tools/llvm-objcopy/ObjcopyOpts.td
+++ llvm/trunk/tools/llvm-objcopy/ObjcopyOpts.td
@@ -67,6 +67,8 @@
HelpText<"Remove non-allocated sections other than .gnu.warning* sections">;
def strip_all_gnu : Flag<["-", "--"], "strip-all-gnu">,
HelpText<"Compaitable with GNU objcopy's --strip-all">;
+def S : Flag<["-"], "S">,
+ Alias<strip_all_gnu>;
def strip_debug : Flag<["-", "--"], "strip-debug">,
HelpText<"Remove all debug information">;
def strip_dwo : Flag<["-", "--"], "strip-dwo">,
Index: llvm/trunk/test/tools/llvm-objcopy/strip-all-gnu.test
===================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-all-gnu.test
+++ llvm/trunk/test/tools/llvm-objcopy/strip-all-gnu.test
@@ -1,6 +1,9 @@
# RUN: yaml2obj %s > %t
+# RUN: cp %t %t1
# RUN: llvm-objcopy --strip-all-gnu %t %t2
# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
+# RUN: llvm-objcopy -S %t1 %t3
+# RUN: cmp %t2 %t3
!ELF
FileHeader:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52163.165730.patch
Type: text/x-patch
Size: 1170 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180917/288f2fb0/attachment.bin>
More information about the llvm-commits
mailing list