[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / obj2yaml / versym-section.yaml
blob38836960615c17403207260c4e198bd14f771d47
1 # RUN: yaml2obj %s -o %t
2 # RUN: obj2yaml %t | FileCheck %s
4 ## Check we are able to yamalize the SHT_GNU_versym section.
6 # CHECK:      --- !ELF
7 # CHECK-NEXT: FileHeader:
8 # CHECK-NEXT:   Class:           ELFCLASS64
9 # CHECK-NEXT:   Data:            ELFDATA2LSB
10 # CHECK-NEXT:   Type:            ET_EXEC
11 # CHECK-NEXT:   Machine:         EM_X86_64
12 # CHECK-NEXT:   Entry:           0x0000000000201000
13 # CHECK-NEXT: Sections:
14 # CHECK-NEXT:   - Name:            .gnu.version
15 # CHECK-NEXT:     Type:            SHT_GNU_versym
16 # CHECK-NEXT:     Flags:           [ SHF_ALLOC ]
17 # CHECK-NEXT:     Address:         0x0000000000200210
18 # CHECK-NEXT:     Link:            .dynsym
19 # CHECK-NEXT:     AddressAlign:    0x0000000000000002
20 # CHECK-NEXT:     EntSize:         0x0000000000000002
21 # CHECK-NEXT:     Entries:         [ 0, 3, 4 ]
22 # CHECK-NEXT: DynamicSymbols:
23 # CHECK-NEXT:   - Name:    f1
24 # CHECK-NEXT:     Binding: STB_GLOBAL
25 # CHECK-NEXT:   - Name:    f2
26 # CHECK-NEXT:     Binding: STB_GLOBAL
28 --- !ELF
29 FileHeader:
30   Class:           ELFCLASS64
31   Data:            ELFDATA2LSB
32   Type:            ET_EXEC
33   Machine:         EM_X86_64
34   Entry:           0x0000000000201000
35 Sections:
36   - Name:            .gnu.version
37     Type:            SHT_GNU_versym
38     Flags:           [ SHF_ALLOC ]
39     Address:         0x0000000000200210
40     Link:            .dynsym
41     AddressAlign:    0x0000000000000002
42     EntSize:         0x0000000000000002
43     Entries:         [ 0, 3, 4 ]
44 DynamicSymbols:
45   - Name:    f1
46     Binding: STB_GLOBAL
47   - Name:    f2
48     Binding: STB_GLOBAL
49 ...