system() function broken
Michel Marti
michel.marti at objectxp.com
Sun May 21 09:51:14 UTC 2006
Hello,
The following code doesn't work as expected when compiled with the codesourcery
toolchain:
#include <stdlib.h>
int main(int argc, char **argv)
{
system("/bin/busybox");
exit(0);
}
command-line used for compiling:
$ m68k-uclinux-gcc -m5200 -Wl,-elf2flt test.c -o test
When executing this program on the target (M5271EVB), the following happens:
# ./test
?: applet not found
However, If I use the GCC-2.95.3-based Toolchain from uclinux.org, the program
works as expected.
Is this a bug in the version of uclibc included in the codesourcery toolchain?
Regards,
Michel
More information about the coldfire-gnu-discuss
mailing list