]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/crt-custom/mystart.s
dyld-210.2.3.tar.gz
[apple/dyld.git] / unit-tests / test-cases / crt-custom / mystart.s
1 # Built output for (null)
2 # Generated at (null)
3 # Using (null) configuration, (null) architecture for (null) target of (null) project
4
5
6
7
8 .text
9 .align 2
10 .globl _mystart
11 _mystart:
12 #if __i386__
13 call L1
14 L1: popl %eax
15 movl L_flag$non_lazy_ptr-L1(%eax), %eax
16 movl $2, (%eax)
17 jmp start
18 #elif __x86_64__
19 movl $2, _flag(%rip)
20 jmp start
21 #elif __ppc__ || __ppc64__
22 li r0,2
23 lis r2,ha16(_flag)
24 stw r0,lo16(_flag)(r2)
25 b start
26 #elif __arm__
27 ldr r3, L4
28 mov r2, #2
29 add r3, pc
30 ldr r3, [r3]
31 str r2, [r3, #0]
32 b start
33 L4: .long L_flag$non_lazy_ptr-(L4-8)
34 #endif
35
36 #if __i386__ || __arm__
37 .section __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
38 .align 2
39 L_flag$non_lazy_ptr:
40 .indirect_symbol _flag
41 .long 0
42 #endif
43
44