about summary refs log tree commit diff
path: root/arch/aarch64/crt_arch.h
blob: 3a4b321e4708962b1ede8d1f49751468d241574f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
__asm__(
".global " START "\n"
".type " START ",%function\n"
START ":\n"
"	mov x29, #0\n"
"	mov x30, #0\n"
"	mov x0, sp\n"
".weak _DYNAMIC\n"
".hidden _DYNAMIC\n"
"	adrp x1, _DYNAMIC\n"
"	add x1, x1, #:lo12:_DYNAMIC\n"
"	and sp, x0, #-16\n"
"	b " START "_c\n"
);