[linux-sh:03215] Re: jornada 680 linux (fwd)

Dan Kegel <[email protected]> Mon, 26 Apr 2004 06:54:57 -0700
Newsgroups gmane.linux.ports.sh.general
Message-ID <[email protected]>
Dan Kegel wrote:
> H.Brunsting wrote:
> 
>> Both the uclibc and glibc toolchains have their own behaviour. I'll 
>> see if I can narrow the errors down a bit by doing some more testing. 
>> When I build busybox with the crosstool toolchain, I get illegal 
>> instructions when I run "busybox ls -al", while the normal "busybox 
>> ls" works fine. "ps" suffers from the illegal instruction as well, no 
>> matter how I invoke it. Busybox ash would terminate with illegal 
>> instruction with one of my previous toolchains, but the uclibc 
>> toolchain I have now seems to produce good static code, however it 
>> messes up on dynamic stuff (I'll have to test it again to tell you 
>> about the details, I can't remember).
>> What I should really do is get some of this stuff documented, as in 
>> what chain causes what behaviour, etc... I'll see if I can get that 
>> done this weekend.
> 
> 
> Excellent.  I seem to recall going through a very similar exercise once.
> It'd be great if you could create a minimal C program that demonstrated
> the crash (maybe by copying and pasting from busybox's ls or ps code).

An strace log would help, too.

By the way, if you're trying to mix new executables with
old shared libraries, this kind of crash is inevitable.
There was an ABI change.  The only way to test new
executables is with a userland created totally from
scratch with the new tools.
- Dan

-- 
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change