Peter, Looking at the libffi/src/powerpc/ffi.c file, I assume that I should have the same...
*next_arg++ = (unsigned long)(char *)ecif->rvalue; in ffi_darwin.c instead of the current... *next_arg++ = (unsigned)(char *)ecif->rvalue; Does that sound right? If so, I'll file a PR for this as well and do a test build tonight. Jack