]> git.proxmox.com Git - wasi-libc.git/blame - libc-top-half/musl/arch/powerpc64/crt_arch.h
WASI libc prototype implementation.
[wasi-libc.git] / libc-top-half / musl / arch / powerpc64 / crt_arch.h
CommitLineData
320054e8
DG
1__asm__(
2".text \n"
3".global " START " \n"
4".type " START ", %function \n"
5START ": \n"
6" addis 2, 12, .TOC.-" START "@ha \n"
7" addi 2, 2, .TOC.-" START "@l \n"
8" lwz 4, 1f-" START "(12)\n"
9" add 4, 4, 12 \n"
10" mr 3, 1 \n"
11" clrrdi 1, 1, 4 \n"
12" li 0, 0 \n"
13" stdu 0, -32(1) \n"
14" mtlr 0 \n"
15" bl " START "_c \n"
16".weak _DYNAMIC \n"
17".hidden _DYNAMIC \n"
18"1: .long _DYNAMIC-" START "\n"
19);