I am just writing application software using fedora linux for target board power pc mpc5200 and the tool chain eltib

below is the command i used

powerpc-603e-linux-gcc -o ganesh_thread ganesh_thread.c ganesh_driver.c /opt/mtwk/usr/local/gcc-3.4.3-glibc-2.3.6-1/powerpc-603e-linux/powerpc-603e-linux/lib/libpthread.a /opt/mtwk/usr/local/gcc-3.4.3-glibc-2.3.6-1/powerpc-603e-linux/powerpc-603e-linux/lib/libc.a /mpcrootfs/usr/lib/libusb.a -I /home/venkatesh/libusb-0.1.12

for thie above command i am able to compile but while running am getting segmentation fault.dont say boundry issue,even for empty "hello world "printf program its getting the same

previously i used eldk tool chain with the command ppc_6xx-gcc in place of powerpc-603e-linux-gcc . for this error given below

/opt/eldk/usr/bin/../lib/gcc/powerpc-linux/4.0.0/../../../../powerpc-linux/bin/ld: errno: TLS definition in /opt/eldk/usr/../ppc_6xx/lib/libc.so.6 section .tbss mismatches non-TLS definition in /opt/eldk/ppc_6xx/lib/libc.a(errno.o) section .sbss
/opt/eldk/usr/../ppc_6xx/lib/libc.so.6: could not read symbols: Bad value

I just want to create a thread for my application but am gettting error in libc.a could anyone help me out