1 # RUN: yaml2obj %s | llvm-readobj --symbols - | \
2 # RUN: FileCheck --check-prefix OBJ %s
3 # RUN: yaml2obj %s | obj2yaml - | FileCheck --check-prefix YAML %s
6 # OBJ: Name: default1 (36)
9 # OBJ-NEXT: Binding: Global (0x1)
10 # OBJ-NEXT: Type: Object (0x1)
12 # OBJ-NEXT: Section: .data (0x1)
15 # OBJ-NEXT: Name: default2 (27)
16 # OBJ-NEXT: Value: 0x4
18 # OBJ-NEXT: Binding: Global (0x1)
19 # OBJ-NEXT: Type: Object (0x1)
21 # OBJ-NEXT: Section: .data (0x1)
24 # OBJ-NEXT: Name: internal (8)
25 # OBJ-NEXT: Value: 0x8
27 # OBJ-NEXT: Binding: Global (0x1)
28 # OBJ-NEXT: Type: Object (0x1)
29 # OBJ-NEXT: Other [ (0x1)
30 # OBJ-NEXT: STV_INTERNAL
32 # OBJ-NEXT: Section: .data (0x1)
35 # OBJ-NEXT: Name: hidden (1)
36 # OBJ-NEXT: Value: 0xC
38 # OBJ-NEXT: Binding: Global (0x1)
39 # OBJ-NEXT: Type: Object (0x1)
40 # OBJ-NEXT: Other [ (0x2)
41 # OBJ-NEXT: STV_HIDDEN
43 # OBJ-NEXT: Section: .data (0x1)
46 # OBJ-NEXT: Name: protected (17)
47 # OBJ-NEXT: Value: 0x10
49 # OBJ-NEXT: Binding: Global (0x1)
50 # OBJ-NEXT: Type: Object (0x1)
51 # OBJ-NEXT: Other [ (0xA3)
52 # OBJ-NEXT: STO_MIPS_MICROMIPS
53 # OBJ-NEXT: STO_MIPS_PIC
54 # OBJ-NEXT: STV_PROTECTED
56 # OBJ-NEXT: Section: .data (0x1)
60 # YAML-NEXT: - Name: default1
61 # YAML-NEXT: Type: STT_OBJECT
62 # YAML-NEXT: Section: .data
63 # YAML-NEXT: Binding: STB_GLOBAL
64 # YAML-NEXT: Size: 0x0000000000000004
65 # YAML-NEXT: - Name: default2
66 # YAML-NEXT: Type: STT_OBJECT
67 # YAML-NEXT: Section: .data
68 # YAML-NEXT: Binding: STB_GLOBAL
69 # YAML-NEXT: Value: 0x0000000000000004
70 # YAML-NEXT: Size: 0x0000000000000004
71 # YAML-NEXT: - Name: internal
72 # YAML-NEXT: Type: STT_OBJECT
73 # YAML-NEXT: Section: .data
74 # YAML-NEXT: Binding: STB_GLOBAL
75 # YAML-NEXT: Value: 0x0000000000000008
76 # YAML-NEXT: Size: 0x0000000000000004
77 # YAML-NEXT: Visibility: STV_INTERNAL
78 # YAML-NEXT: - Name: hidden
79 # YAML-NEXT: Type: STT_OBJECT
80 # YAML-NEXT: Section: .data
81 # YAML-NEXT: Binding: STB_GLOBAL
82 # YAML-NEXT: Value: 0x000000000000000C
83 # YAML-NEXT: Size: 0x0000000000000004
84 # YAML-NEXT: Visibility: STV_HIDDEN
85 # YAML-NEXT: - Name: protected
86 # YAML-NEXT: Type: STT_OBJECT
87 # YAML-NEXT: Section: .data
88 # YAML-NEXT: Binding: STB_GLOBAL
89 # YAML-NEXT: Value: 0x0000000000000010
90 # YAML-NEXT: Size: 0x0000000000000004
91 # YAML-NEXT: Visibility: STV_PROTECTED
92 # YAML-NEXT: Other: [ STO_MIPS_PIC, STO_MIPS_MICROMIPS ]
100 Flags: [ EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ]
105 Flags: [ SHF_ALLOC, SHF_WRITE ]
112 Visibility: STV_DEFAULT
125 Visibility: STV_INTERNAL
132 Visibility: STV_HIDDEN
139 Visibility: STV_PROTECTED
140 Other: [ STO_MIPS_MICROMIPS, STO_MIPS_PIC ]