]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/tlv-dylib/getfoo.s
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / tlv-dylib / getfoo.s
1
2 #if __x86_64__
3 .text
4 .globl _get_foo
5 _get_foo:
6 pushq %rbp
7 movq %rsp, %rbp
8 movq _foo@TLVP(%rip), %rdi
9 call *(%rdi)
10 popq %rbp
11 ret
12 #endif
13
14
15 #if __i386__
16 .text
17 .globl _get_foo
18 _get_foo:
19 pushl %ebp
20 movl %esp, %ebp
21 subl $8, %esp
22 movl _foo@TLVP, %eax
23 call *(%eax)
24 movl %ebp, %esp
25 popl %ebp
26 ret
27 #endif
28
29 .subsections_via_symbols