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)
61 # YAML-NEXT: - Name: default1
62 # YAML-NEXT: Type: STT_OBJECT
63 # YAML-NEXT: Section: .data
64 # YAML-NEXT: Size: 0x0000000000000004
65 # YAML-NEXT: - Name: default2
66 # YAML-NEXT: Type: STT_OBJECT
67 # YAML-NEXT: Section: .data
68 # YAML-NEXT: Value: 0x0000000000000004
69 # YAML-NEXT: Size: 0x0000000000000004
70 # YAML-NEXT: - Name: internal
71 # YAML-NEXT: Type: STT_OBJECT
72 # YAML-NEXT: Section: .data
73 # YAML-NEXT: Value: 0x0000000000000008
74 # YAML-NEXT: Size: 0x0000000000000004
75 # YAML-NEXT: Visibility: STV_INTERNAL
76 # YAML-NEXT: - Name: hidden
77 # YAML-NEXT: Type: STT_OBJECT
78 # YAML-NEXT: Section: .data
79 # YAML-NEXT: Value: 0x000000000000000C
80 # YAML-NEXT: Size: 0x0000000000000004
81 # YAML-NEXT: Visibility: STV_HIDDEN
82 # YAML-NEXT: - Name: protected
83 # YAML-NEXT: Type: STT_OBJECT
84 # YAML-NEXT: Section: .data
85 # YAML-NEXT: Value: 0x0000000000000010
86 # YAML-NEXT: Size: 0x0000000000000004
87 # YAML-NEXT: Visibility: STV_PROTECTED
88 # YAML-NEXT: Other: [ STO_MIPS_PIC, STO_MIPS_MICROMIPS ]
96 Flags: [ EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ]
101 Flags: [ SHF_ALLOC, SHF_WRITE ]
109 Visibility: STV_DEFAULT
120 Visibility: STV_INTERNAL
126 Visibility: STV_HIDDEN
132 Visibility: STV_PROTECTED
133 Other: [ STO_MIPS_MICROMIPS, STO_MIPS_PIC ]