[ThinLTO] Add code comment. NFC
[llvm-complete.git] / test / MC / MachO / tlv.s
blob774436bd3192e41119395ed1f9707f7c6518365f
1 // RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s
3 .tlv
4 .globl _a
5 _a:
6 .quad 0
7 .quad 0
8 .quad 0
10 // CHECK: File: <stdin>
11 // CHECK: Format: Mach-O 64-bit x86-64
12 // CHECK: Arch: x86_64
13 // CHECK: AddressSize: 64bit
14 // CHECK: MachHeader {
15 // CHECK: Magic: Magic64 (0xFEEDFACF)
16 // CHECK: CpuType: X86-64 (0x1000007)
17 // CHECK: CpuSubType: CPU_SUBTYPE_X86_64_ALL (0x3)
18 // CHECK: FileType: Relocatable (0x1)
19 // CHECK: NumOfLoadCommands: 3
20 // CHECK: SizeOfLoadCommands: 336
21 // CHECK: Flags [ (0x0)
22 // CHECK: ]
23 // CHECK: Reserved: 0x0
24 // CHECK: }
25 // CHECK: Sections [
26 // CHECK: Section {
27 // CHECK: Index: 0
28 // CHECK: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
29 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
30 // CHECK: Address: 0x0
31 // CHECK: Size: 0x0
32 // CHECK: Offset: 368
33 // CHECK: Alignment: 0
34 // CHECK: RelocationOffset: 0x0
35 // CHECK: RelocationCount: 0
36 // CHECK: Type: Regular (0x0)
37 // CHECK: Attributes [ (0x800000)
38 // CHECK: PureInstructions (0x800000)
39 // CHECK: ]
40 // CHECK: Reserved1: 0x0
41 // CHECK: Reserved2: 0x0
42 // CHECK: Reserved3: 0x0
43 // CHECK: SectionData (
44 // CHECK: )
45 // CHECK: }
46 // CHECK: Section {
47 // CHECK: Index: 1
48 // CHECK: Name: __thread_vars (5F 5F 74 68 72 65 61 64 5F 76 61 72 73 00 00 00)
49 // CHECK: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
50 // CHECK: Address: 0x0
51 // CHECK: Size: 0x18
52 // CHECK: Offset: 368
53 // CHECK: Alignment: 0
54 // CHECK: RelocationOffset: 0x0
55 // CHECK: RelocationCount: 0
56 // CHECK: Type: ThreadLocalVariables (0x13)
57 // CHECK: Attributes [ (0x0)
58 // CHECK: ]
59 // CHECK: Reserved1: 0x0
60 // CHECK: Reserved2: 0x0
61 // CHECK: Reserved3: 0x0
62 // CHECK: SectionData (
63 // CHECK: 0000: 00000000 00000000 00000000 00000000 |................|
64 // CHECK: 0010: 00000000 00000000 |........|
65 // CHECK: )
66 // CHECK: }
67 // CHECK: ]
68 // CHECK: Relocations [
69 // CHECK: ]
70 // CHECK: Symbols [
71 // CHECK: Symbol {
72 // CHECK: Name: _a (1)
73 // CHECK: Extern
74 // CHECK: Type: Section (0xE)
75 // CHECK: Section: __thread_vars (0x2)
76 // CHECK: RefType: UndefinedNonLazy (0x0)
77 // CHECK: Flags [ (0x0)
78 // CHECK: ]
79 // CHECK: Value: 0x0
80 // CHECK: }
81 // CHECK: ]
82 // CHECK: Indirect Symbols {
83 // CHECK: Number: 0
84 // CHECK: Symbols [
85 // CHECK: ]
86 // CHECK: }
87 // CHECK: Segment {
88 // CHECK: Cmd: LC_SEGMENT_64
89 // CHECK: Name:
90 // CHECK: Size: 232
91 // CHECK: vmaddr: 0x0
92 // CHECK: vmsize: 0x18
93 // CHECK: fileoff: 368
94 // CHECK: filesize: 24
95 // CHECK: maxprot: rwx
96 // CHECK: initprot: rwx
97 // CHECK: nsects: 2
98 // CHECK: flags: 0x0
99 // CHECK: }
100 // CHECK: Dysymtab {
101 // CHECK: ilocalsym: 0
102 // CHECK: nlocalsym: 0
103 // CHECK: iextdefsym: 0
104 // CHECK: nextdefsym: 1
105 // CHECK: iundefsym: 1
106 // CHECK: nundefsym: 0
107 // CHECK: tocoff: 0
108 // CHECK: ntoc: 0
109 // CHECK: modtaboff: 0
110 // CHECK: nmodtab: 0
111 // CHECK: extrefsymoff: 0
112 // CHECK: nextrefsyms: 0
113 // CHECK: indirectsymoff: 0
114 // CHECK: nindirectsyms: 0
115 // CHECK: extreloff: 0
116 // CHECK: nextrel: 0
117 // CHECK: locreloff: 0
118 // CHECK: nlocrel: 0
119 // CHECK: }