1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy %t %t2
3 # RUN: llvm-readobj --symbols %t2 | FileCheck %s
17 Index: SHN_HEXAGON_SCOMMON
21 Index: SHN_HEXAGON_SCOMMON_1
25 Index: SHN_HEXAGON_SCOMMON_2
29 Index: SHN_HEXAGON_SCOMMON_4
33 Index: SHN_HEXAGON_SCOMMON_8
40 #CHECK-NEXT: Value: 0x0
42 #CHECK-NEXT: Binding: Local (0x0)
43 #CHECK-NEXT: Type: None (0x0)
45 #CHECK-NEXT: Section: Undefined (0x0)
48 #CHECK-NEXT: Name: test
49 #CHECK-NEXT: Value: 0x1233
51 #CHECK-NEXT: Binding: Global (0x1)
52 #CHECK-NEXT: Type: None (0x0)
54 #CHECK-NEXT: Section: Common (0xFFF2)
57 #CHECK-NEXT: Name: test1
58 #CHECK-NEXT: Value: 0x1234
60 #CHECK-NEXT: Binding: Global (0x1)
61 #CHECK-NEXT: Type: None (0x0)
63 #CHECK-NEXT: Section: Processor Specific (0xFF00)
66 #CHECK-NEXT: Name: test2
67 #CHECK-NEXT: Value: 0x1235
69 #CHECK-NEXT: Binding: Global (0x1)
70 #CHECK-NEXT: Type: None (0x0)
72 #CHECK-NEXT: Section: Processor Specific (0xFF01)
75 #CHECK-NEXT: Name: test3
76 #CHECK-NEXT: Value: 0x1236
78 #CHECK-NEXT: Binding: Global (0x1)
79 #CHECK-NEXT: Type: None (0x0)
81 #CHECK-NEXT: Section: Processor Specific (0xFF02)
84 #CHECK-NEXT: Name: test4
85 #CHECK-NEXT: Value: 0x1237
87 #CHECK-NEXT: Binding: Global (0x1)
88 #CHECK-NEXT: Type: None (0x0)
90 #CHECK-NEXT: Section: Processor Specific (0xFF03)
93 #CHECK-NEXT: Name: test5
94 #CHECK-NEXT: Value: 0x1238
96 #CHECK-NEXT: Binding: Global (0x1)
97 #CHECK-NEXT: Type: None (0x0)
99 #CHECK-NEXT: Section: Processor Specific (0xFF04)