Hi there, On Nov 21, 2007 2:07 PM, Tomoyoshi ASANO <[EMAIL PROTECTED]> wrote: > I tested big-endian binaries by sh4(eb)-linux-user > with a small patch(attached) for building sh4eb-linux-user. > But I don't understand that this patch is needed or not.
I'm not sure if that patch is all that is needed. You may need to change more things like TARGET_WORDS_BIGENDIAN in the configure script. > sh4eb-linux-user is OK using static link binaries. > > But I feel that sh4eb-linux-users has some problem(?) > using dynamic link binaries. > > 1) If host-os has /etc/ld.so.cache, sh4eb-linux-users is NG. [snip log] > But if no /etc/ld.so.cache in host-os, sh4eb-linux-users is OK. > > 2) If host-os has /lib/tls/*, sh4eb-linux-users is NG. [snip log] > But if no /lib/tls in host-os, sh4eb-linux-users is OK. > > please help if possible. I have not tested sh in big endian mode yet, so I'm not sure what issues you may run into. I have however noticed that regardless of endian target libraries may feel the need of loading host files such as /etc/ld.so.cache which in turn may lead to some serious confusion. Maybe the path remapping engine in scratchbox2 solves this issue? http://www.freedesktop.org/wiki/Software/sbox2 The release sbox2-1.99.0.19 does not support SH out of the box, but the latest git version should be ok. Good luck! / magnus