summaryrefslogtreecommitdiffhomepage
path: root/crt/nt64/crte.s
blob: 3999da52861fadb665e21242d7de2e63bed2dec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
############################################################################
##  mmglue: midipix architecture- and target-specific bits for musl libc  ##
##  Copyright (C) 2013--2023  SysDeer Technologies, LLC                   ##
##  Released under GPLv2 and GPLv3; see COPYING.MMGLUE.                   ##
############################################################################

.text
.globl __so_entry_point
__so_entry_point:
	cmp	$0x1,%edx
	jne	dso_main_routine
	mov	%edx,%eax
	ret

__dso_main_routine:
	ret

	.weak	dso_main_routine
	.def    dso_main_routine; .scl 2; .type 32; .endef
	.set	dso_main_routine,__dso_main_routine

.section .midipix
	.quad	__so_entry_point
	.quad	dso_main_routine
	.quad	0
	.quad	0

	# void *reserved[16];
	.quad	0x0
	.quad	0x1
	.quad	0x2
	.quad	0x3
	.quad	0x4
	.quad	0x5
	.quad	0x6
	.quad	0x7
	.quad	0x8
	.quad	0x9
	.quad	0xa
	.quad	0xb
	.quad	0xc
	.quad	0xd
	.quad	0xe
	.quad	0xf