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 | |
parent | 92a6ceb9da69eaa96d4658c76432f206f867af57 (diff) | |
download | psxstub-11957ad98b5af041ff0ba04deb1cc4c9e2154ca2.tar.bz2 psxstub-11957ad98b5af041ff0ba04deb1cc4c9e2154ca2.tar.xz |
fix 32/64-bit support.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | stub.S (renamed from stub.s) | 8 |
2 files changed, 10 insertions, 2 deletions
@@ -1,6 +1,6 @@ all: - $(TARGET)-gcc -shared -nostdlib -mout-implib -olibpsxscl.so stub.s - $(TARGET)-as -o stub.o stub.s + $(TARGET)-gcc -shared -nostdlib -mout-implib -olibpsxscl.so stub.S + $(TARGET)-gcc -c -o stub.o stub.S $(TARGET)-ar rc libpsxscl.a stub.o $(TARGET)-ranlib libpsxscl.a @@ -17,8 +17,16 @@ __so_entry_point: .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 |