Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-objcopy / ELF / basic-keep.test
blob2790773b4b3dd3bc5958285d674d81d97158627b
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy --strip-non-alloc --keep-section=.test %t %t2
3 # RUN: llvm-strip --strip-all --keep-section=.test %t -o %t3
4 # RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s
5 # RUN: cmp %t2 %t3
7 !ELF
8 FileHeader:
9   Class:           ELFCLASS64
10   Data:            ELFDATA2LSB
11   Type:            ET_REL
12   Machine:         EM_X86_64
13 Sections:
14   - Name:            .test
15     Type:            SHT_PROGBITS
16     Flags:           [ ]
18 # CHECK: SectionHeaderCount: 3
20 # CHECK:     Name: .test
21 # CHECK:     Name: .shstrtab