In this diff the elf-specific tests are moved into the subfolder llvm-objcopy/ELF (the change was discussed in the comments on https://reviews.llvm.org/D54674). A separate code reivew wasn't sent for this change since Phabricator is failing to create such a large diff. Test plan: make check-all make check-llvm-tools make check-llvm-tools-llvm-objcopy llvm-svn: 347958
21 lines
600 B
Plaintext
21 lines
600 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
|
|
|
|
!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"
|