]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/tlv-dylib/foo.s
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / tlv-dylib / foo.s
1
2 // _foo is an exported thread local variable
3 // _bar is an exported regular variable
4
5 # _a is zerofill global TLV
6 .tbss _a$tlv$init,4,2
7
8 #if __x86_64__
9 .tlv
10 .globl _foo
11 _foo: .quad __tlv_bootstrap
12 .quad 0
13 .quad _a$tlv$init
14
15
16 #endif
17
18 #if __i386__
19 .tlv
20 .globl _foo
21 _foo: .long __tlv_bootstrap
22 .long 0
23 .long _a$tlv$init
24 #endif
25
26
27 .data
28 .globl _bar
29 _bar: .long 0
30
31
32
33 .subsections_via_symbols