[llvm] r332078 - [llvm-objcopy] Update remove-section.test

Alexander Shaposhnikov via llvm-commits llvm-commits at lists.llvm.org
Thu May 10 21:30:57 PDT 2018


Author: alexshap
Date: Thu May 10 21:30:57 2018
New Revision: 332078

URL: http://llvm.org/viewvc/llvm-project?rev=332078&view=rev
Log:
[llvm-objcopy] Update remove-section.test

Verify that the input binary is not getting modified
and add an invocation which uses -remove-section instead of -R.

Test plan: make check-all

Modified:
    llvm/trunk/test/tools/llvm-objcopy/remove-section.test

Modified: llvm/trunk/test/tools/llvm-objcopy/remove-section.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/remove-section.test?rev=332078&r1=332077&r2=332078&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/remove-section.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/remove-section.test Thu May 10 21:30:57 2018
@@ -1,7 +1,16 @@
 # RUN: yaml2obj %s > %t
+# RUN: cp %t %t1
+
 # RUN: llvm-objcopy -R .test2 %t %t2
 # RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
 
+# Verify that the first run of llvm-objcopy
+# has not modified the input binary.
+# RUN: cmp %t %t1
+
+# RUN: llvm-objcopy -remove-section=.test2 %t1 %t3
+# RUN: cmp %t2 %t3
+
 !ELF
 FileHeader:
   Class:           ELFCLASS64




More information about the llvm-commits mailing list