If certain switches are not specified, llvm-strip behaves as if --strip-all were specified. This means that for testing, when we don't want the stripping behaviour, we have to specify one of these switches, which can be confusing. This change adds --no-strip-all to allow an alternative way of suppressing the default stripping, in a less confusing manner. Reviewed by: jakehehrlich, MaskRay Differential Revision: https://reviews.llvm.org/D61377 llvm-svn: 359781
23 lines
680 B
Plaintext
23 lines
680 B
Plaintext
# NOTE: This test is only intended to be valid as long as --only-keep-debug is
|
|
# implemented as a NOP. This test should fail when that changes and you
|
|
# will need to update this test.
|
|
|
|
# RUN: yaml2obj %s > %t
|
|
# RUN: llvm-objcopy %t %t2
|
|
# RUN: llvm-objcopy --only-keep-debug %t %t3
|
|
# RUN: cmp %t2 %t3
|
|
# RUN: llvm-strip --only-keep-debug --no-strip-all %t -o %t4
|
|
# RUN: cmp %t2 %t4
|
|
|
|
!ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_EXEC
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .text
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|
|
Content: "DEADBEEF"
|