1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

[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

llvm-svn: 332078
This commit is contained in:
Alexander Shaposhnikov 2018-05-11 04:30:57 +00:00
parent c57bdbb244
commit 22e394ed73

View File

@ -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