[lit] Add argument check: --timeout must be non-negative integer
[llvm-core.git] / test / tools / yaml2obj / verneed-section.yaml
blob5a7aaa23c6798b6accc1cf06e05b64a2f48efd35
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj -V %t | FileCheck %s
4 # Check we are able to handle the SHT_GNU_verneed sections.
6 # CHECK:      SHT_GNU_verneed {
7 # CHECK-NEXT:   Dependency {
8 # CHECK-NEXT:     Version: 1
9 # CHECK-NEXT:     Count: 2
10 # CHECK-NEXT:     FileName: dso.so.0
11 # CHECK-NEXT:     Entries [
12 # CHECK-NEXT:       Entry {
13 # CHECK-NEXT:         Hash: 1937
14 # CHECK-NEXT:         Flags: 0xA
15 # CHECK-NEXT:         Index: 3
16 # CHECK-NEXT:         Name: v1
17 # CHECK-NEXT:       }
18 # CHECK-NEXT:       Entry {
19 # CHECK-NEXT:         Hash: 1938
20 # CHECK-NEXT:         Flags: 0xB
21 # CHECK-NEXT:         Index: 4
22 # CHECK-NEXT:         Name: v2
23 # CHECK-NEXT:       }
24 # CHECK-NEXT:     ]
25 # CHECK-NEXT:   }
26 # CHECK-NEXT:   Dependency {
27 # CHECK-NEXT:     Version: 1
28 # CHECK-NEXT:     Count: 1
29 # CHECK-NEXT:     FileName: dso.so.1
30 # CHECK-NEXT:     Entries [
31 # CHECK-NEXT:       Entry {
32 # CHECK-NEXT:         Hash: 1939
33 # CHECK-NEXT:         Flags: 0xC
34 # CHECK-NEXT:         Index: 2
35 # CHECK-NEXT:         Name: v3
36 # CHECK-NEXT:       }
37 # CHECK-NEXT:     ]
38 # CHECK-NEXT:   }
39 # CHECK-NEXT: }
41 --- !ELF
42 FileHeader:
43   Class:           ELFCLASS64
44   Data:            ELFDATA2LSB
45   Type:            ET_EXEC
46   Machine:         EM_X86_64
47   Entry:           0x0000000000201000
48 Sections:
49   - Name:            .gnu.version_r
50     Type:            SHT_GNU_verneed
51     Flags:           [ SHF_ALLOC ]
52     Address:         0x0000000000200250
53     Link:            .dynstr
54     AddressAlign:    0x0000000000000004
55     Info:            0x0000000000000002
56     Dependencies:
57       - Version:         1
58         File:            dso.so.0
59         Entries:
60           - Name:            v1
61             Hash:            1937
62             Flags:           10
63             Other:           3
64           - Name:            v2
65             Hash:            1938
66             Flags:           11
67             Other:           4
68       - Version:         1
69         File:            dso.so.1
70         Entries:
71           - Name:            v3
72             Hash:            1939
73             Flags:           12
74             Other:           2
75 DynamicSymbols:
76   - Name:    f1
77     Binding: STB_GLOBAL