[linux-sh:03397] Re: sh3 problems with shared libraries
Dan Kegel <[email protected]> Mon, 14 Mar 2005 08:21:27 -0800
| Newsgroups | gmane.linux.ports.sh.general |
|---|---|
| Message-ID | <[email protected]> |
Kristoffer Ericson wrote: > I'm doing work on www.jlime.com to get linux working on hp6xx machines (sh3 > based).And i've got some problems that has haunted this project for the last > couple of months (6-9months). > > Creating Dynamic or Static binaries works fine, but only static actually work. > > The only thing ive conluded is that the problem is either in gcc,glibc or > binutils. Most likely binutils. > > Using your crosstool is no different from using the vanilla sources, static > works but dynamic doesnt. I've read on some mailing lists that this problem has > existed for quite some time now. I got dynamic libs working fine on sh4 two years ago at ixia. I seem to recall a bit of debugging... guess I used a static system first, then brought up dynamic linking carefully, using strace and printf, and maybe gdb/gdbserver. The trick is to make each step from the start transparant; then you can see where it goes awry. Running the glibc regression tests is also a great idea. The linux-sh mailing list is very helpful even though the archive is broken. http://www.m17n.org/linux-sh/ml/linux-sh/ > I'm aware of one person having a working sh3 dynamic enviroment > www.sh-linux.org. He builds from srpms (which got attached patches), you can > find his toolchain here http://rpm.sh-linux.org/rpm-2004/host/RPMS/i386/. > > I'm currently adding the patches one after one, to see which "fixes" the > problem. > Would greatly appreciate your experties in this area, if you would be so kind as > to look at the patches and give your opinion. Please post to the linux-sh or crossgcc lists rather than to me directly. Then I'm glad to help a bit. Be sure to mention the versions of gcc/glibc/binutils/linux you're having problems with. > Btw, thx for crosstool, we use it regulary to build the sh3-kernel. You're welcome! - Dan -- Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html