@@ -15,15 +15,16 @@ * file. */ #include "config.h" +#import "amiga-library.h" #import "platform.h" #ifdef OF_AMIGAOS_M68K # define PPC_PARAMS(...) (void) -# define M68K_ARG OBJC_M68K_ARG +# define M68K_ARG OF_M68K_ARG #else # define PPC_PARAMS(...) (__VA_ARGS__) # define M68K_ARG(...) #endif @@ -36,9 +37,15 @@ " lwz %r13, 44(%r12)\n" " blr\n" ); #endif -/* To not have an empty compilation unit for now. */ -__asm__ ( - "" -); +bool __saveds +glue_of_init PPC_PARAMS(unsigned int version, struct of_libc *libc, + FILE *stderr_) +{ + M68K_ARG(unsigned int, version, d0) + M68K_ARG(struct objc_libc *, libc, a0) + M68K_ARG(FILE *, stderr_, a1) + + return of_init(version, libc, stderr_); +}