[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / llvm-objcopy / ELF / set-section-flags-multiple.test
blob41732f3807da3536976623f060493cd44f4081c8
1 # RUN: yaml2obj %s > %t
3 # RUN: llvm-objcopy --set-section-flags=.foo=alloc --set-section-flags=.bar=code %t %t.2
4 # RUN: llvm-readobj --sections %t.2 | FileCheck %s --check-prefixes=CHECK,ALLOC,WRITE
6 !ELF
7 FileHeader:
8   Class:           ELFCLASS64
9   Data:            ELFDATA2LSB
10   Type:            ET_REL
11   Machine:         EM_X86_64
12 Sections:
13   - Name:            .foo
14     Type:            SHT_PROGBITS
15     Flags:           [ ]
16   - Name:            .bar
17     Type:            SHT_PROGBITS
18     Flags:           [ ]
20 # CHECK:        Name: .foo
21 # CHECK-NEXT:   Type: SHT_PROGBITS
22 # CHECK-NEXT:   Flags [
23 # CHECK-NEXT:     SHF_ALLOC (0x2)
24 # CHECK-NEXT:     SHF_WRITE (0x1)
25 # CHECK-NEXT:   ]
27 # CHECK:        Name: .bar
28 # CHECK-NEXT:   Type: SHT_PROGBITS
29 # CHECK-NEXT:   Flags [
30 # CHECK-NEXT:     SHF_EXECINSTR (0x4)
31 # CHECK-NEXT:     SHF_WRITE (0x1)
32 # CHECK-NEXT:   ]