system() function broken
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

system() function broken



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