forked from OSchip/llvm-project
[llvm-objcopy] Make -S an alias for --strip-all
-S should be an alias for --strip-all not --strip-all-gnu llvm-svn: 344080
This commit is contained in:
parent
8aa69e9927
commit
5e49846ca6
|
@ -2,8 +2,6 @@
|
|||
# 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:
|
||||
|
|
|
@ -35,6 +35,10 @@
|
|||
# RUN: llvm-strip --strip-all %t8
|
||||
# RUN: cmp %t2 %t8
|
||||
|
||||
# RUN: cp %t %t9
|
||||
# RUN: llvm-objcopy -S %t9 %t9
|
||||
# RUN: cmp %t2 %t9
|
||||
|
||||
# Verify that a non-existent symbol table (after first call to llvm-strip)
|
||||
# can be handled correctly.
|
||||
# RUN: cp %t %t9
|
||||
|
|
|
@ -67,10 +67,10 @@ defm add_section : Eq<"add-section">,
|
|||
HelpText<"Make a section named <section> with the contents of <file>.">;
|
||||
def strip_all : Flag<["-", "--"], "strip-all">,
|
||||
HelpText<"Remove non-allocated sections other than .gnu.warning* sections">;
|
||||
def S : Flag<["-"], "S">,
|
||||
Alias<strip_all>;
|
||||
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">,
|
||||
|
|
Loading…
Reference in New Issue