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