summaryrefslogtreecommitdiffhomepage
path: root/crt/nt32/crte.s
blob: 2e016dc6f159e6efe72bf8f14e6b793645c0d337 (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 the Standard MIT License; 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
	.long	__so_entry_point
	.long	_dso_main_routine
	.long	0
	.long	0

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