summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/ELF
diff options
context:
space:
mode:
authorDouglas Yung <douglas.yung@sony.com>2019-01-25 09:57:20 +0000
committerDouglas Yung <douglas.yung@sony.com>2019-01-25 09:57:20 +0000
commit914e838e636d44c9798e790535bacec04a16b0d5 (patch)
treefd5b2eaa9688a815ad086adff57a856f57412355 /llvm/test/tools/llvm-objcopy/ELF
parent56bf7b56dcb2796525e9d1aa5e735de8495f44cd (diff)
downloadbcm5719-llvm-914e838e636d44c9798e790535bacec04a16b0d5.tar.gz
bcm5719-llvm-914e838e636d44c9798e790535bacec04a16b0d5.zip
[llvm-objcopy] Add support for -g as an alias for --strip-debug
This change adds an option -g to llvm-objcopy which is an alias for the existing option --strip-debug. This fixes PR40003. Reviewed by: alexshap Differential Revision: https://reviews.llvm.org/D57217 llvm-svn: 352182
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/ELF')
-rw-r--r--llvm/test/tools/llvm-objcopy/ELF/strip-debug.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/ELF/strip-debug.test b/llvm/test/tools/llvm-objcopy/ELF/strip-debug.test
index b88744e5f42..d7079f6abcb 100644
--- a/llvm/test/tools/llvm-objcopy/ELF/strip-debug.test
+++ b/llvm/test/tools/llvm-objcopy/ELF/strip-debug.test
@@ -6,6 +6,10 @@
# Verify that the previous run of llvm-objcopy has not modified the input.
# RUN: cmp %t %t3
+# RUN: llvm-objcopy -g %t %t2g
+# Verify that --strip-debug and -g produce the same output
+# RUN: cmp %t2 %t2g
+
# RUN: llvm-strip --strip-debug %t3
# RUN: cmp %t2 %t3
OpenPOWER on IntegriCloud