Re: [coldfire-gnu-discuss] system() function broken
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldfire-gnu-discuss] system() function broken
- To: Michel Marti <michel.marti@xxxxxxxxxxxx>
- Subject: Re: [coldfire-gnu-discuss] system() function broken
- From: Nathan Sidwell <nathan@xxxxxxxxxxxxxxxx>
- Date: Mon, 22 May 2006 09:01:46 +0100
Michel Marti wrote:
Here's what happens when calling system("echo hello"):
# ./test
?<... '?' repeats about 8000 times...>?: applet not found
aha, I'm sorry, I forgot that you would be using the 4.1-3 public release. I've
been reminded that we fixed this bug, but have yet to make a new public release.
The bug is that gcc fails to maintain 4 byte stack alignment. For m68k targets,
this is fine, but the coldfire targets are much more picky. uclibc contains an
alloca call in the 'system' function that misaligns the stack.
We will be making a new public release shortly, it is undergoing final testing.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan@xxxxxxxxxxxxxxxx :: http://www.planetfall.pwp.blueyonder.co.uk