diff options
-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 |