summaryrefslogtreecommitdiffhomepage
path: root/stub.S
blob: 99b71f57e1bf56b2150d90cd7eb17156c12d36c0 (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
###########################################################
##  psxstub: loader library stub for toolchain build     ##
##  Copyright (C) 2015--2016  SysDeer Technologies, LLC  ##
##  Released under GPLv2 and GPLv3; see COPYING.PSXSTUB. ##
###########################################################

.text
.globl __psx_init
.globl ___psx_init
.weak  _so_entry_point
.weak  __so_entry_point

.def __psx_init;  .scl 2; .type 32; .endef
.def ___psx_init; .scl 2; .type 32; .endef

__psx_init:
___psx_init:
_so_entry_point:
__so_entry_point:
	mov $1, %eax
	ret

	.section .got$stub
	.global __imp___psx_init
	.global __imp____psx_init

#ifdef __NT64
__imp___psx_init:
__imp____psx_init:
	.quad	__psx_init
#endif

#ifdef __NT32
__imp___psx_init:
__imp____psx_init:
	.long	___psx_init

#endif