summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/ELF
diff options
context:
space:
mode:
authorJordan Rupprecht <rupprecht@google.com>2019-03-14 21:51:42 +0000
committerJordan Rupprecht <rupprecht@google.com>2019-03-14 21:51:42 +0000
commit12ed01dcf9136b774f4bf189280599c0c865f0f7 (patch)
tree72aa3978b1f884005777dae47b6029bbebfe34f0 /llvm/test/tools/llvm-objcopy/ELF
parent0b31b24c1377e3e0f592856bc202ec54e098de0e (diff)
downloadbcm5719-llvm-12ed01dcf9136b774f4bf189280599c0c865f0f7.tar.gz
bcm5719-llvm-12ed01dcf9136b774f4bf189280599c0c865f0f7.zip
[llvm-strip] Hook up (unimplemented) --only-keep-debug
For ELF, we accept but ignore --only-keep-debug. Do the same for llvm-strip. COFF does implement this, so update the test that it is supported. llvm-svn: 356207
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/ELF')
-rw-r--r--llvm/test/tools/llvm-objcopy/ELF/basic-only-keep-debug.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/ELF/basic-only-keep-debug.test b/llvm/test/tools/llvm-objcopy/ELF/basic-only-keep-debug.test
index c35c4a5c60a..c5a794a0858 100644
--- a/llvm/test/tools/llvm-objcopy/ELF/basic-only-keep-debug.test
+++ b/llvm/test/tools/llvm-objcopy/ELF/basic-only-keep-debug.test
@@ -6,6 +6,10 @@
# RUN: llvm-objcopy %t %t2
# RUN: llvm-objcopy --only-keep-debug %t %t3
# RUN: cmp %t2 %t3
+# Run llvm-strip with --strip-symbol on a non-existent symbol to prevent
+# defaulting to --strip-all.
+# RUN: llvm-strip --only-keep-debug --strip-symbol foo %t -o %t4
+# RUN: cmp %t2 %t4
!ELF
FileHeader:
OpenPOWER on IntegriCloud