]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/crt-custom/mystart.s
dyld-195.5.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 .globl _mystart
10 _mystart:
11 #if __i386__
12 call L1
13 L1: popl %eax
14 movl L_flag$non_lazy_ptr-L1(%eax), %eax
15 movl $2, (%eax)
16 jmp start
17 #elif __x86_64__
18 movl $2, _flag(%rip)
19 jmp start
20 #elif __ppc__ || __ppc64__
21 li r0,2
22 lis r2,ha16(_flag)
23 stw r0,lo16(_flag)(r2)
24 b start
25 #elif __arm__
26 ldr r3, L4
27 mov r2, #2
28 add r3, pc
29 ldr r3, [r3]
30 str r2, [r3, #0]
31 b start
32 L4: .long L_flag$non_lazy_ptr-(L4-8)
33 #endif
34
35 #if __i386__ || __arm__
36 .section __DATA,__nl_symbol_ptr,non_lazy_symbol_pointers
37 .align 2
38 L_flag$non_lazy_ptr:
39 .indirect_symbol _flag
40 .long 0
41 #endif
42
43