Could you please tell me why you made sh-linux little endian in gas and big endian in ld? How can it work? Shouldn't you remove the "sh-*-linux*" entry from ld/configure.tgt? H.J.