diff options
author | Wolfgang Pieb <Wolfgang.Pieb@sony.com> | 2019-08-08 00:35:16 +0000 |
---|---|---|
committer | Wolfgang Pieb <Wolfgang.Pieb@sony.com> | 2019-08-08 00:35:16 +0000 |
commit | ab751a7c8b9b469c6a1fbeb7e5e62ba0b99fd3b9 (patch) | |
tree | 29aeb1c8ca5573b95e4177bb7022cf37db2db0f0 /llvm/test/tools/llvm-objcopy | |
parent | 80ef2f05d878fd6b00bbfb2ed1c04e2657d241cc (diff) | |
download | bcm5719-llvm-ab751a7c8b9b469c6a1fbeb7e5e62ba0b99fd3b9.tar.gz bcm5719-llvm-ab751a7c8b9b469c6a1fbeb7e5e62ba0b99fd3b9.zip |
[llvm-strip] Support --strip-sections
llvm-objcopy already supports --strip-sections. It is a good fit for its alias llvm-strip
to support it as well.
Reviewers: rupprecht, jhenderson
Differential Revision: https://reviews.llvm.org/D65787
llvm-svn: 368241
Diffstat (limited to 'llvm/test/tools/llvm-objcopy')
-rw-r--r-- | llvm/test/tools/llvm-objcopy/ELF/strip-sections.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/ELF/strip-sections.test b/llvm/test/tools/llvm-objcopy/ELF/strip-sections.test index 492a0821521..40032d93a3d 100644 --- a/llvm/test/tools/llvm-objcopy/ELF/strip-sections.test +++ b/llvm/test/tools/llvm-objcopy/ELF/strip-sections.test @@ -8,6 +8,11 @@ # RUN: llvm-objcopy %t %t3 # RUN: od -t x1 -j 4096 -N 12 %t3 | FileCheck %s --check-prefix=VALIDATE +## Check that llvm-strip --strip-sections is equivalent to +## llvm-objcopy --strip-sections. +# RUN: llvm-strip --strip-sections %t -o %t4 +# RUN: cmp %t2 %t4 + !ELF FileHeader: Class: ELFCLASS64 |