On m68k ELF calling standard (__SVR4_ABI__), if a function returns a pointer, the return value should go to a0 as well as d0.