summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-04-07 21:10:09 +0000
committerRui Ueyama <ruiu@google.com>2016-04-07 21:10:09 +0000
commitc4354a3c1812b2e170cefa74ce00a77f5fedef5c (patch)
treef1f1819d0e3649137d1623c7ed3f234980e6f172
parentfc6a4b045ff797f036f2f800e54a47154da01522 (diff)
downloadbcm5719-llvm-c4354a3c1812b2e170cefa74ce00a77f5fedef5c.tar.gz
bcm5719-llvm-c4354a3c1812b2e170cefa74ce00a77f5fedef5c.zip
ELF: Define -S as an alias for --strip-debug.
llvm-svn: 265723
-rw-r--r--lld/ELF/Options.td1
-rw-r--r--lld/test/ELF/strip-debug.s2
2 files changed, 3 insertions, 0 deletions
diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td
index 1cd250e5f2f..2129296a433 100644
--- a/lld/ELF/Options.td
+++ b/lld/ELF/Options.td
@@ -189,6 +189,7 @@ def alias_soname_soname : Separate<["-"], "soname">, Alias<soname>;
def alias_script_T : JoinedOrSeparate<["-"], "T">, Alias<script>;
def alias_trace : Flag<["-"], "t">, Alias<trace>;
def alias_strip_all: Flag<["-"], "s">, Alias<strip_all>;
+def alias_strip_debug_S: Flag<["-"], "S">, Alias<strip_debug>;
def alias_undefined_u : JoinedOrSeparate<["-"], "u">, Alias<undefined>;
def alias_wrap_wrap : Joined<["--", "-"], "wrap=">, Alias<wrap>;
diff --git a/lld/test/ELF/strip-debug.s b/lld/test/ELF/strip-debug.s
index 4075fe604e6..81f7572aa7c 100644
--- a/lld/test/ELF/strip-debug.s
+++ b/lld/test/ELF/strip-debug.s
@@ -5,6 +5,8 @@
# RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=DEFAULT %s
# RUN: ld.lld %t -o %t2 --strip-debug
# RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=STRIP %s
+# RUN: ld.lld %t -o %t2 -S
+# RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=STRIP %s
# RUN: ld.lld %t -o %t2 --strip-all
# RUN: llvm-readobj -sections -symbols %t2 | FileCheck -check-prefix=STRIP %s
OpenPOWER on IntegriCloud