[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / llvm-objcopy / ELF / strip-non-alloc.test
blob1f082bf47344df8307dcc413a321ff374a4a9ff3
1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy --strip-non-alloc %t %t2
3 # RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s
5 !ELF
6 FileHeader:
7   Class:           ELFCLASS64
8   Data:            ELFDATA2LSB
9   Type:            ET_REL
10   Machine:         EM_X86_64
11 Sections:
12   - Name:            non_alloc_in_segment
13     Type:            SHT_PROGBITS
14     Flags:           [ ]
15     Size:            4
16   - Name:            .bss
17     Type:            SHT_NOBITS
18     Flags:           [ SHF_ALLOC ]
19   - Name:            .text
20     Type:            SHT_PROGBITS
21     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
22   - Name:            .blarg
23     Type:            SHT_PROGBITS
24     Flags:           [ ]
25 ProgramHeaders:
26   # Use an arbitrary segment type to show that the segment type is unimportant.
27   - Type: 0x61234567
28     Sections:
29       - Section: non_alloc_in_segment
31 # CHECK: SectionHeaderCount: 5
33 # CHECK: Name: non_alloc_in_segment
34 # CHECK: Name: .bss
35 # CHECK: Name: .text
36 # CHECK: Name: .shstrtab