[uClibc]Problems on powerpc with shared libs and odd argument count

Andreas Liebe liebe at hrz.tu-darmstadt.de
Thu Feb 28 06:26:44 UTC 2002


On Wed, Feb 27, 2002 at 05:09:41PM -0800, David Schleef wrote:
> On Sun, Feb 24, 2002 at 02:29:03PM +0100, Andreas Liebe wrote:
> > I'm trying to convert a tiny PPC855 system from glibc to uclibc, but
> > I'm having problem with dynamically linked programmes. They all fail
> > with memory fault/segv when invoked with an even number of arguments
> > (means argc is odd). So "prog" fails, "prog 1" works, "prog 1 2"
> > fails, "prog 1 2 3" works, and so on. If I link them statically everything
> > works great.
> 
> I looked through the core file that you sent me.  It appears that
> the kernel is giving ld.so a stack pointer that is not 16-byte
> aligned.  The ABI requires that the stack is 16-byte aliged at
> all times, which apparently is assumed by some code in ld.so.
> Linux-2.4.17 appears to align the stack pointer correctly
> (fs/binfmt_elf.c), especially since it works correctly on my machine.
> What kernel are you using?

Currently we use 2.4.3. I'll check if I can change this.

Thank you,

 -Andreas

-- 
Andreas Liebe/Darmstadt University of Technology/+49 6151 16-3150/3050(FAX)

Wer denkt, was andere denken sei richtig, denkt nicht (unbekannt)



More information about the uClibc mailing list