[linux-sh:03398] Re: sh3 problems with shared libraries

"Kristoffer Ericson" <[email protected]> Tue, 15 Mar 2005 23:42:39 +0000
Newsgroups gmane.linux.ports.sh.general
Message-ID <[email protected]>
A small updated:

I've downloaded all srpms from the www.sh-linux.org website. Then i've 
unpacked them using rpm2targz. Everything is availabel at 
www.jlime.com/downloads/Various/patches  . One or more of these patches 
should fix the problem seeing as how the www.sh-llinux.org binaries work 
well.
As you all realize is this a big handicap for the linux-sh3 community.


So far i've implemented one binutils patch and one gcc but no cigar yet.

Any futher assistance would be greatly appreciated.

Best wishes
Kristoffer



>From: Dan Kegel <[email protected]>
>To: Kristoffer Ericson <[email protected]>,   "''[email protected]' '" 
><[email protected]>
>Subject: [linux-sh:03397] Re: sh3 problems with shared libraries
>Date: Mon, 14 Mar 2005 08:21:27 -0800
>
>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
>

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/