aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/sysdeps/linux/riscv64/crt-src/crt1.S
blob: 16c79d681f1c100985d6a246c1cb8150c10260f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.section .text
.global _start
_start:
	.weak __global_pointer$
	.hidden __global_pointer$
	.option push
	.option norelax
	lla gp, __global_pointer$
	.option pop

	mv a0, sp
	la a1, main
	call __mlibc_entry
.section .note.GNU-stack,"",%progbits