]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/non-lazy-sections-r/foo.s
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / non-lazy-sections-r / foo.s
1 .text
2 .align 4
3 .globl _test
4 _test:
5 #if __i386__
6 movl L_foo$non_lazy_ptr, %eax
7 movl L_bar$non_lazy_ptr, %eax
8 movl L_other$non_lazy_ptr, %eax
9 ret
10 #endif
11 #if __arm__ || __ppc__
12 .long L_foo$non_lazy_ptr
13 .long L_bar$non_lazy_ptr
14 .long L_other$non_lazy_ptr
15 #endif
16
17
18
19 .section __IMPORT,__pointers,non_lazy_symbol_pointers
20 L_foo$non_lazy_ptr:
21 .indirect_symbol _foo
22 .long 0
23
24 .section __DATA,__one,non_lazy_symbol_pointers
25 L_bar$non_lazy_ptr:
26 .indirect_symbol _bar
27 .long 0
28
29 .section __DATA,__two,non_lazy_symbol_pointers
30 L_other$non_lazy_ptr:
31 .indirect_symbol _other
32 .long 0
33
34
35 .subsections_via_symbols