diff options
author | midipix <writeonce@midipix.org> | 2015-09-09 07:08:43 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-09-09 07:08:43 -0400 |
commit | 11957ad98b5af041ff0ba04deb1cc4c9e2154ca2 (patch) | |
tree | a1b268061356718471cddb7817cc794b84311613 /stub.S | |
parent | 92a6ceb9da69eaa96d4658c76432f206f867af57 (diff) | |
download | psxstub-11957ad98b5af041ff0ba04deb1cc4c9e2154ca2.tar.bz2 psxstub-11957ad98b5af041ff0ba04deb1cc4c9e2154ca2.tar.xz |
fix 32/64-bit support.
Diffstat (limited to 'stub.S')
-rw-r--r-- | stub.S | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -0,0 +1,32 @@ +.text +.globl __psx_init +.globl ___psx_init +.globl _so_entry_point +.globl __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 |