mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-01 07:30:33 +00:00
[llvm-objcopy] Make -S an alias for --strip-all
-S should be an alias for --strip-all not --strip-all-gnu git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344080 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0f4106775e
commit
10e3a5f0a7
@ -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
Block a user